tq 2440

Greg KH gregkh at suse.de
Thu Jul 15 12:51:41 EDT 2010


On Thu, Jul 15, 2010 at 05:35:26PM +0100, Russell King - ARM Linux wrote:
> On Thu, Jul 15, 2010 at 11:16:30PM +0800, Conke Hu wrote:
> > ever notice to the following kernel log?
> > "Device 's3c2440-nand' does not have a release() function, it is
> > broken and must."
> > release() function should be implemented  in the platform_device.
> 
> That's not telling you to provide a release function.  The warning is
> telling you that a device is being unregistered which doesn't have a
> release function.
> 
> Consider this point - maybe it doesn't have a release function because
> it's not supposed to be unregistered?

Heh, well, it is being unregistered, and at that point in time, the
kernel complains.

All kobjects need a release function that actually frees it.  If not,
that is a logic bug.  Please see the Documentation/kobject.txt file for
details.

thanks,

greg k-h



More information about the linux-arm-kernel mailing list