summaryrefslogtreecommitdiffstats
path: root/include/linux/pci.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2008-02-13 11:03:58 -0800
committerGreg Kroah-Hartman <gregkh@suse.de>2008-04-20 21:46:54 -0700
commit95247b57ed844511a212265b45cf9a919753aea1 (patch)
treeffabb4e3b868120f3d9a2c6463d568ad12d2f7f5 /include/linux/pci.h
parent34220909a26b7f7cfc71e88ce01856c2563fe1d4 (diff)
downloadlinux-95247b57ed844511a212265b45cf9a919753aea1.tar.gz
linux-95247b57ed844511a212265b45cf9a919753aea1.tar.bz2
linux-95247b57ed844511a212265b45cf9a919753aea1.zip
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,
struct pci_dev *from);
struct pci_dev *pci_get_subsys(unsigned int vendor, unsigned int device,
unsigned int ss_vendor, unsigned int ss_device,
- struct pci_dev *from);
+ const struct pci_dev *from);
struct pci_dev *pci_get_slot(struct pci_bus *bus, unsigned int devfn);
struct pci_dev *pci_get_bus_and_slot(unsigned int bus, unsigned int devfn);
struct 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,
unsigned int device,
unsigned int ss_vendor,
unsigned int ss_device,
- struct pci_dev *from)
+ const struct pci_dev *from)
{
return NULL;
}