From: dmitry p. <dpe...@gm...> - 2005-09-27 14:50:09
|
On Tue, 2005-09-27 at 07:35 -0700, Greg KH wrote: > Please read up on how the lifetime rules work for devices, and what > needs to happen in the release function (hint, take a look at other > busses, like USB and PCI for examples of what needs to be done.) As far as I can see, pci_release_device deletes the pci_dev using kfree. But here we have statically allocated spi_device structures -- spi_device_add does not allocate spi_device, but uses caller-allocated one. > > thanks, > > greg k-h > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > spi-devel-general mailing list > spi...@li... > https://lists.sourceforge.net/lists/listinfo/spi-devel-general > > |