Re: [PATCH] deprecate pci_module_init

From: Chris Wedgwood
Date: Wed Nov 03 2004 - 20:02:20 EST


On Wed, Nov 03, 2004 at 04:51:08PM -0800, Greg KH wrote:

> Read the code :)

fair enough

> 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.

ok, this makes perfect sense now -- i have patches to an out-of-tree
driver (madwifi) that broke recently because it does

if (pci_register_drive(...) <= 0) {
/* error */

sort of thing.

thanks!
--cw
-
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/