On Tue, Jul 24, 2007 at 11:51:34PM +0100, Al Viro wrote: > On Tue, Jul 24, 2007 at 03:39:52PM -0700, [EMAIL PROTECTED] wrote: > > * netdev_pci_remove_one() can replace simple pci device remove > > functions > > > > * devm_alloc_netdev() is like alloc_netdev but allocates memory using > > devres. > > alloc_netdev() can be removed once all drivers use devres. > > Ewwww... What the hell for? To make sure that we have struct device > for everything, whether we need it or not? Have you actually read > through drivers/net? I mean, _really_ read through it, looking for > ugly cases... > > I've done just that several times and I'm sorry, but I would classify > that project as hopeless. It's way, _way_ more diverse than SATA...
Actually, it's even worse - net_device itself simply *cannot* be dealt with that way. Its lifetime can indefinitely exceed that of underlying e.g. PCI device. - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html