-   Linux - Embedded & Single-board computer (
-   -   deallocation of resource allocated by platform_get_resources (

prabhakar_kushwaha 09-13-2007 01:44 AM

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


osor 09-13-2007 04:17 PM

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).

dsouza_jack 11-28-2007 05:02 AM

you can use platform_device_put to Free all memory associated with a platform device.


All times are GMT -5. The time now is 06:55 AM.