blob: d3509cdeb554913dddb68fc5b956c63bd77a1abf [file] [log] [blame]
Sam Ravnborg41057172008-02-02 22:32:23 +01001/* Core PCI functionality used only by PCI hotplug */
2
3#include <linux/pci.h>
Paul Gortmaker363c75d2011-05-27 09:37:25 -04004#include <linux/export.h>
Sam Ravnborg41057172008-02-02 22:32:23 +01005#include "pci.h"
6
7
Sam Ravnborg0ab2b572008-02-17 10:45:28 +01008unsigned int __devinit pci_do_scan_bus(struct pci_bus *bus)
Sam Ravnborg41057172008-02-02 22:32:23 +01009{
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}
21EXPORT_SYMBOL(pci_do_scan_bus);