Re: [PATCH] deprecate pci_module_init

From: Greg KH
Date: Wed Nov 03 2004 - 20:01:28 EST


On Wed, Nov 03, 2004 at 04:37:34PM -0800, Chris Wedgwood wrote:
> On Wed, Nov 03, 2004 at 04:21:39PM -0800, Greg KH wrote:
>
> > Due to the change in the way the function works, I'm slowly changing
> > drivers over to the new function. It's just too dangerous over time
> > to leave it alone.
>
> this is what i'm not clear about --- how does it work differently?

Read the code :)

In short, pci_module_init() on 2.4 would return the number of pci
devices bound to the device, on 2.6, it just always returns 0 if the
driver was successfully registered, no knowledge of how many devices
bound are ever returned.

Hope this helps,

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/