]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: clean up search.c a lot
authorGreg Kroah-Hartman <gregkh@suse.de>
Wed, 13 Feb 2008 19:03:58 +0000 (11:03 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 21 Apr 2008 04:46:54 +0000 (21:46 -0700)
commit4917d1195be6759beece63c77589017037214600
treeffabb4e3b868120f3d9a2c6463d568ad12d2f7f5
parent686ac1830b3798402f8466a33c29230b8e965d9c
PCI: clean up search.c a lot

This cleans up the search.c file, now using the pci list of devices that
are created for the driver core, instead of relying on our separate list
of devices.  It's better to use the functions already created for this
kind of thing, instead of rolling our own all the time.

This work is done in anticipation of getting rid of that second list of
pci devices all together.

And it ends up saving code, always a nice benefit.

This also removes one compiler warning for when CONFIG_PCI_LEGACY is
enabled as we no longer internally use the deprecated functions anymore.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/search.c
include/linux/pci.h