login
Header Space

 
 

Re: Clarifying platform_device_unregister

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jaya Kumar <jayakumar.lkml@...>
Cc: Linux Kernel Development <linux-kernel@...>
Date: Tuesday, April 1, 2008 - 1:19 am

Hi Jaya,

On Mon, Mar 31, 2008 at 09:14:35PM -0400, Jaya Kumar wrote:

Platform device code does kfree(pdev->dev.platform_data) unpon
unregistration, so it is not a good idea to assign address of
statically-allocated variable here. You should be using:

	platform_device_add_data(mytest_device, &mydata, sizeof(mydata));



Hope this helps.

-- 
Dmitry
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Clarifying platform_device_unregister, Jaya Kumar, (Mon Mar 31, 9:14 pm)
Re: Clarifying platform_device_unregister, Dmitry Torokhov, (Tue Apr 1, 1:19 am)
Re: Clarifying platform_device_unregister, Jaya Kumar, (Tue Apr 1, 3:47 am)
Re: Clarifying platform_device_unregister, Dmitry Torokhov, (Tue Apr 1, 10:54 am)
Re: Clarifying platform_device_unregister, Richard Purdie, (Sat Apr 5, 7:44 am)
Re: Clarifying platform_device_unregister, Jaya Kumar, (Tue Apr 1, 9:57 pm)
Re: Clarifying platform_device_unregister, Richard Purdie, (Sat Apr 5, 8:07 am)
speck-geostationary