]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - drivers/pci/host/pci-host-generic.c
PCI: generic: Pass starting bus number to pci_scan_root_bus()
[mirror_ubuntu-zesty-kernel.git] / drivers / pci / host / pci-host-generic.c
index 2533e8da136d30545d0ef06663f2d4a4d030ecfc..895c0e39ca3b9ccbc0e4172c6ca0d6716ef2d08d 100644 (file)
@@ -251,7 +251,8 @@ static int gen_pci_probe(struct platform_device *pdev)
        if (!pci_has_flag(PCI_PROBE_ONLY))
                pci_add_flags(PCI_REASSIGN_ALL_RSRC | PCI_REASSIGN_ALL_BUS);
 
-       bus = pci_scan_root_bus(dev, 0,
+
+       bus = pci_scan_root_bus(dev, pci->cfg.bus_range->start,
                                &pci->cfg.ops->ops, pci, &pci->resources);
        if (!bus) {
                dev_err(dev, "Scanning rootbus failed");