diff options
Diffstat (limited to 'drivers/pci/hotplug-pci.c')
-rw-r--r-- | drivers/pci/hotplug-pci.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/pci/hotplug-pci.c b/drivers/pci/hotplug-pci.c new file mode 100644 index 000000000000..a590ef682153 --- /dev/null +++ b/drivers/pci/hotplug-pci.c | |||
@@ -0,0 +1,20 @@ | |||
1 | /* Core PCI functionality used only by PCI hotplug */ | ||
2 | |||
3 | #include <linux/pci.h> | ||
4 | #include "pci.h" | ||
5 | |||
6 | |||
7 | unsigned int pci_do_scan_bus(struct pci_bus *bus) | ||
8 | { | ||
9 | unsigned int max; | ||
10 | |||
11 | max = pci_scan_child_bus(bus); | ||
12 | |||
13 | /* | ||
14 | * Make the discovered devices available. | ||
15 | */ | ||
16 | pci_bus_add_devices(bus); | ||
17 | |||
18 | return max; | ||
19 | } | ||
20 | EXPORT_SYMBOL(pci_do_scan_bus); | ||