Commit f4063846 authored by Yinghai Lu's avatar Yinghai Lu Committed by Bjorn Helgaas

PCI: cpci_hotplug: register busn_res

Signed-off-by: default avatarYinghai Lu <yinghai@kernel.org>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
parent bc76b731
......@@ -294,6 +294,7 @@ int __ref cpci_configure_slot(struct slot *slot)
struct pci_bus *child;
unsigned char busnr, start = parent->busn_res.start;
unsigned char end = parent->busn_res.end;
int max;
for (busnr = start; busnr <= end; busnr++) {
if (!pci_find_bus(pci_domain_nr(parent),
......@@ -312,7 +313,8 @@ int __ref cpci_configure_slot(struct slot *slot)
pci_dev_put(dev);
continue;
}
child->busn_res.end = pci_do_scan_bus(child);
max = pci_do_scan_bus(child);
pci_bus_update_busn_res_end(child, max);
pci_bus_size_bridges(child);
}
pci_dev_put(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment