aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/pci/hotplug/cpci_hotplug_pci.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/pci/hotplug/cpci_hotplug_pci.c b/drivers/pci/hotplug/cpci_hotplug_pci.c
index 42f3a61db87c..111b7d94c9a9 100644
--- a/drivers/pci/hotplug/cpci_hotplug_pci.c
+++ b/drivers/pci/hotplug/cpci_hotplug_pci.c
@@ -294,6 +294,7 @@ int __ref cpci_configure_slot(struct slot *slot)
294 struct pci_bus *child; 294 struct pci_bus *child;
295 unsigned char busnr, start = parent->busn_res.start; 295 unsigned char busnr, start = parent->busn_res.start;
296 unsigned char end = parent->busn_res.end; 296 unsigned char end = parent->busn_res.end;
297 int max;
297 298
298 for (busnr = start; busnr <= end; busnr++) { 299 for (busnr = start; busnr <= end; busnr++) {
299 if (!pci_find_bus(pci_domain_nr(parent), 300 if (!pci_find_bus(pci_domain_nr(parent),
@@ -312,7 +313,8 @@ int __ref cpci_configure_slot(struct slot *slot)
312 pci_dev_put(dev); 313 pci_dev_put(dev);
313 continue; 314 continue;
314 } 315 }
315 child->busn_res.end = pci_do_scan_bus(child); 316 max = pci_do_scan_bus(child);
317 pci_bus_update_busn_res_end(child, max);
316 pci_bus_size_bridges(child); 318 pci_bus_size_bridges(child);
317 } 319 }
318 pci_dev_put(dev); 320 pci_dev_put(dev);