| Sam Ravnborg | 4105717 | 2008-02-02 22:32:23 +0100 | [diff] [blame] | 1 | /* Core PCI functionality used only by PCI hotplug */ | 
|  | 2 |  | 
|  | 3 | #include <linux/pci.h> | 
| Paul Gortmaker | 363c75d | 2011-05-27 09:37:25 -0400 | [diff] [blame] | 4 | #include <linux/export.h> | 
| Sam Ravnborg | 4105717 | 2008-02-02 22:32:23 +0100 | [diff] [blame] | 5 | #include "pci.h" | 
|  | 6 |  | 
|  | 7 |  | 
| Sam Ravnborg | 0ab2b57 | 2008-02-17 10:45:28 +0100 | [diff] [blame] | 8 | unsigned int __devinit pci_do_scan_bus(struct pci_bus *bus) | 
| Sam Ravnborg | 4105717 | 2008-02-02 22:32:23 +0100 | [diff] [blame] | 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); |