tq 2440

Greg KH gregkh at suse.de
Fri Jul 16 04:55:33 EDT 2010


On Thu, Jul 15, 2010 at 10:09:36PM +0100, Russell King - ARM Linux wrote:
> On Thu, Jul 15, 2010 at 01:51:53PM -0700, Greg KH wrote:
> > On Thu, Jul 15, 2010 at 06:33:22PM +0100, Russell King - ARM Linux wrote:
> > > Another way to avoid the other complaints is to remove
> > > the unregistration in platform_register_devices().
> > 
> > No, because you could have created a platform device with a call to
> > platform_device_alloc() and then called platform_device_register() and
> > then later, platform_device_unregister(), right?
> 
> No.  Sorry, platform_register_devices should've been platform_add_devices().
> Please look at that function.

Hm, it just calls platform_device_register(), so it's pretty hard to
determine that it's a static device from that function.

> It's used to register an array of static platform devices from architecture
> code, as I've said in this thread once already.

I can't think of an easy way to prevent these types of devices from
being removed, other than the existing warnings we have.  I'll mull it
over some more and see if I can come up with something in the future.

thanks,

greg k-h



More information about the linux-arm-kernel mailing list