Skip to content

Commit

Permalink
PCI: cpci_hotplug: register busn_res
Browse files Browse the repository at this point in the history
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
  • Loading branch information
Yinghai Lu authored and Bjorn Helgaas committed Jun 13, 2012
1 parent bc76b73 commit f406384
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/pci/hotplug/cpci_hotplug_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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);
Expand Down

0 comments on commit f406384

Please sign in to comment.