Merge commit 'c104f1fa1ecf4ee0fc06e31b1f77630b2551be81' into stable/for-linus-3.4
[firefly-linux-kernel-4.4.55.git] / drivers / pci / hotplug-pci.c
1 /* Core PCI functionality used only by PCI hotplug */
2
3 #include <linux/pci.h>
4 #include <linux/export.h>
5 #include "pci.h"
6
7
8 unsigned int __devinit pci_do_scan_bus(struct pci_bus *bus)
9 {
10         unsigned int max;
11
12         max = pci_scan_child_bus(bus);
13
14         /*
15          * Make the discovered devices available.
16          */
17         pci_bus_add_devices(bus);
18
19         return max;
20 }
21 EXPORT_SYMBOL(pci_do_scan_bus);