diff options
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/probe.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 89ecded0581b..7fc7e14118cc 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c | |||
@@ -1608,6 +1608,21 @@ err_out: | |||
1608 | return NULL; | 1608 | return NULL; |
1609 | } | 1609 | } |
1610 | 1610 | ||
1611 | struct pci_bus * __devinit pci_scan_root_bus(struct device *parent, int bus, | ||
1612 | struct pci_ops *ops, void *sysdata, struct list_head *resources) | ||
1613 | { | ||
1614 | struct pci_bus *b; | ||
1615 | |||
1616 | b = pci_create_root_bus(parent, bus, ops, sysdata, resources); | ||
1617 | if (!b) | ||
1618 | return NULL; | ||
1619 | |||
1620 | b->subordinate = pci_scan_child_bus(b); | ||
1621 | pci_bus_add_devices(b); | ||
1622 | return b; | ||
1623 | } | ||
1624 | EXPORT_SYMBOL(pci_scan_root_bus); | ||
1625 | |||
1611 | struct pci_bus *pci_create_bus(struct device *parent, | 1626 | struct pci_bus *pci_create_bus(struct device *parent, |
1612 | int bus, struct pci_ops *ops, void *sysdata) | 1627 | int bus, struct pci_ops *ops, void *sysdata) |
1613 | { | 1628 | { |