login
Header Space

 
 

Re: Clarifying platform_device_unregister

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Dmitry Torokhov <dmitry.torokhov@...>
Cc: Richard Purdie <rpurdie@...>, Linux Kernel Development <linux-kernel@...>
Date: Tuesday, April 1, 2008 - 9:57 pm

On Tue, Apr 1, 2008 at 10:54 AM, Dmitry Torokhov
<dmitry.torokhov@gmail.com> wrote:

Sorry, I was unclear. I agree that corgi_pm and spitz_pm are suspect
because they are unloadable. The others that I listed such as lpd270,
lubbock, and mainstone are machine definitions (is that the right term
for me to use?) and can't be unloaded.


I also have a followup. Does corgi/spitz_pm need to manage the module
refcount of sharpsl-pm? I couldn't find any platform device code that
manages the refcount of the platform driver that it binds them to. So
I suspect this means that platform devices must do the try_module_get
stuff themselves. Out of curiosity, what's the reason for not doing
this inside the base/platform.c code?

Thanks,
jaya
--
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