Commit 9fd759d3 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] PCI: make pci_find_subsys() static, as it should not be used anymore

Use pci_get_subsys() if you want this functionality.
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent ec8f3c84
...@@ -156,10 +156,11 @@ struct pci_dev * pci_get_slot(struct pci_bus *bus, unsigned int devfn) ...@@ -156,10 +156,11 @@ struct pci_dev * pci_get_slot(struct pci_bus *bus, unsigned int devfn)
* the pci device returned by this function can disappear at any moment in * the pci device returned by this function can disappear at any moment in
* time. * time.
*/ */
struct pci_dev * static struct pci_dev * pci_find_subsys(unsigned int vendor,
pci_find_subsys(unsigned int vendor, unsigned int device, unsigned int device,
unsigned int ss_vendor, unsigned int ss_device, unsigned int ss_vendor,
const struct pci_dev *from) unsigned int ss_device,
const struct pci_dev *from)
{ {
struct list_head *n; struct list_head *n;
struct pci_dev *dev; struct pci_dev *dev;
...@@ -351,7 +352,6 @@ EXPORT_SYMBOL(pci_find_class); ...@@ -351,7 +352,6 @@ EXPORT_SYMBOL(pci_find_class);
EXPORT_SYMBOL(pci_find_device); EXPORT_SYMBOL(pci_find_device);
EXPORT_SYMBOL(pci_find_device_reverse); EXPORT_SYMBOL(pci_find_device_reverse);
EXPORT_SYMBOL(pci_find_slot); EXPORT_SYMBOL(pci_find_slot);
EXPORT_SYMBOL(pci_find_subsys);
EXPORT_SYMBOL(pci_get_device); EXPORT_SYMBOL(pci_get_device);
EXPORT_SYMBOL(pci_get_subsys); EXPORT_SYMBOL(pci_get_subsys);
EXPORT_SYMBOL(pci_get_slot); EXPORT_SYMBOL(pci_get_slot);
...@@ -719,9 +719,6 @@ extern void pci_remove_bus_device(struct pci_dev *dev); ...@@ -719,9 +719,6 @@ extern void pci_remove_bus_device(struct pci_dev *dev);
struct pci_dev *pci_find_device (unsigned int vendor, unsigned int device, const struct pci_dev *from); struct pci_dev *pci_find_device (unsigned int vendor, unsigned int device, const struct pci_dev *from);
struct pci_dev *pci_find_device_reverse (unsigned int vendor, unsigned int device, const struct pci_dev *from); struct pci_dev *pci_find_device_reverse (unsigned int vendor, unsigned int device, const struct pci_dev *from);
struct pci_dev *pci_find_subsys (unsigned int vendor, unsigned int device,
unsigned int ss_vendor, unsigned int ss_device,
const struct pci_dev *from);
struct pci_dev *pci_find_class (unsigned int class, const struct pci_dev *from); struct pci_dev *pci_find_class (unsigned int class, const struct pci_dev *from);
struct pci_dev *pci_find_slot (unsigned int bus, unsigned int devfn); struct pci_dev *pci_find_slot (unsigned int bus, unsigned int devfn);
int pci_find_capability (struct pci_dev *dev, int cap); int pci_find_capability (struct pci_dev *dev, int cap);
...@@ -888,10 +885,6 @@ static inline struct pci_dev *pci_find_class(unsigned int class, const struct pc ...@@ -888,10 +885,6 @@ static inline struct pci_dev *pci_find_class(unsigned int class, const struct pc
static inline struct pci_dev *pci_find_slot(unsigned int bus, unsigned int devfn) static inline struct pci_dev *pci_find_slot(unsigned int bus, unsigned int devfn)
{ return NULL; } { return NULL; }
static inline struct pci_dev *pci_find_subsys(unsigned int vendor, unsigned int device,
unsigned int ss_vendor, unsigned int ss_device, const struct pci_dev *from)
{ return NULL; }
static inline struct pci_dev *pci_get_device (unsigned int vendor, unsigned int device, struct pci_dev *from) static inline struct pci_dev *pci_get_device (unsigned int vendor, unsigned int device, struct pci_dev *from)
{ return NULL; } { return NULL; }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment