deallocation of resource allocated by platform_get_resources
i am allocating a resource uing platform_get_resource().
Can any body tell me what will be the proper procedure of releasing this allocated
Ummm… platform_get_resource() doesn’t actually allocate anything. It just cycles through all the resources in the specified platform_device matching the requested type and gives you the numth one. In this sense, it is merely a convenience function though it has the benefit of abstraction and hiding (i.e., it is inadvisable to duplicate its functionality since the implementation may change at any time).
you can use platform_device_put to Free all memory associated with a platform device.
|All times are GMT -5. The time now is 04:30 AM.|