aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pci.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2008-02-13 14:03:58 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2008-04-21 00:46:54 -0400
commit95247b57ed844511a212265b45cf9a919753aea1 (patch)
treeffabb4e3b868120f3d9a2c6463d568ad12d2f7f5 /include/linux/pci.h
parent34220909a26b7f7cfc71e88ce01856c2563fe1d4 (diff)
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>
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r--include/linux/pci.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index 39ecf48ffa3b..5f79c72bae63 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -519,7 +519,7 @@ struct pci_dev *pci_get_device(unsigned int vendor, unsigned int device,
519 struct pci_dev *from); 519 struct pci_dev *from);
520struct pci_dev *pci_get_subsys(unsigned int vendor, unsigned int device, 520struct pci_dev *pci_get_subsys(unsigned int vendor, unsigned int device,
521 unsigned int ss_vendor, unsigned int ss_device, 521 unsigned int ss_vendor, unsigned int ss_device,
522 struct pci_dev *from); 522 const struct pci_dev *from);
523struct pci_dev *pci_get_slot(struct pci_bus *bus, unsigned int devfn); 523struct pci_dev *pci_get_slot(struct pci_bus *bus, unsigned int devfn);
524struct pci_dev *pci_get_bus_and_slot(unsigned int bus, unsigned int devfn); 524struct pci_dev *pci_get_bus_and_slot(unsigned int bus, unsigned int devfn);
525struct pci_dev *pci_get_class(unsigned int class, struct pci_dev *from); 525struct pci_dev *pci_get_class(unsigned int class, struct pci_dev *from);
@@ -792,7 +792,7 @@ static inline struct pci_dev *pci_get_subsys(unsigned int vendor,
792 unsigned int device, 792 unsigned int device,
793 unsigned int ss_vendor, 793 unsigned int ss_vendor,
794 unsigned int ss_device, 794 unsigned int ss_device,
795 struct pci_dev *from) 795 const struct pci_dev *from)
796{ 796{
797 return NULL; 797 return NULL;
798} 798}