diff options
-rw-r--r-- | drivers/pci/remove.c | 4 | ||||
-rw-r--r-- | include/linux/pci.h | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/drivers/pci/remove.c b/drivers/pci/remove.c index bd2be1c4c668..fd77e2bde2e8 100644 --- a/drivers/pci/remove.c +++ b/drivers/pci/remove.c | |||
@@ -90,7 +90,7 @@ static void __pci_remove_behind_bridge(struct pci_dev *dev); | |||
90 | * device lists, remove the /proc entry, and notify userspace | 90 | * device lists, remove the /proc entry, and notify userspace |
91 | * (/sbin/hotplug). | 91 | * (/sbin/hotplug). |
92 | */ | 92 | */ |
93 | static void __pci_remove_bus_device(struct pci_dev *dev) | 93 | void __pci_remove_bus_device(struct pci_dev *dev) |
94 | { | 94 | { |
95 | if (dev->subordinate) { | 95 | if (dev->subordinate) { |
96 | struct pci_bus *b = dev->subordinate; | 96 | struct pci_bus *b = dev->subordinate; |
@@ -102,6 +102,8 @@ static void __pci_remove_bus_device(struct pci_dev *dev) | |||
102 | 102 | ||
103 | pci_destroy_dev(dev); | 103 | pci_destroy_dev(dev); |
104 | } | 104 | } |
105 | EXPORT_SYMBOL(__pci_remove_bus_device); | ||
106 | |||
105 | void pci_stop_and_remove_bus_device(struct pci_dev *dev) | 107 | void pci_stop_and_remove_bus_device(struct pci_dev *dev) |
106 | { | 108 | { |
107 | pci_stop_bus_device(dev); | 109 | pci_stop_bus_device(dev); |
diff --git a/include/linux/pci.h b/include/linux/pci.h index 073ae9d97ad6..5584aac96e28 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -686,6 +686,7 @@ u8 pci_common_swizzle(struct pci_dev *dev, u8 *pinp); | |||
686 | extern struct pci_dev *pci_dev_get(struct pci_dev *dev); | 686 | extern struct pci_dev *pci_dev_get(struct pci_dev *dev); |
687 | extern void pci_dev_put(struct pci_dev *dev); | 687 | extern void pci_dev_put(struct pci_dev *dev); |
688 | extern void pci_remove_bus(struct pci_bus *b); | 688 | extern void pci_remove_bus(struct pci_bus *b); |
689 | extern void __pci_remove_bus_device(struct pci_dev *dev); | ||
689 | extern void pci_stop_and_remove_bus_device(struct pci_dev *dev); | 690 | extern void pci_stop_and_remove_bus_device(struct pci_dev *dev); |
690 | extern void pci_stop_bus_device(struct pci_dev *dev); | 691 | extern void pci_stop_bus_device(struct pci_dev *dev); |
691 | void pci_setup_cardbus(struct pci_bus *bus); | 692 | void pci_setup_cardbus(struct pci_bus *bus); |