diff options
author | Yinghai Lu <yinghai@kernel.org> | 2012-05-17 18:51:13 -0700 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2012-06-13 15:42:25 -0600 |
commit | f406384628e97618955e17e8d61e59d5ecdc9ca0 (patch) | |
tree | 833c43b889a5088ec5d7d0074f07e427b9e183eb /drivers | |
parent | bc76b7310a352be1c2ed24133e89c5df24eff05e (diff) | |
download | linux-3.10-f406384628e97618955e17e8d61e59d5ecdc9ca0.tar.gz linux-3.10-f406384628e97618955e17e8d61e59d5ecdc9ca0.tar.bz2 linux-3.10-f406384628e97618955e17e8d61e59d5ecdc9ca0.zip |
PCI: cpci_hotplug: register busn_res
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/pci/hotplug/cpci_hotplug_pci.c | 4 |
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 42f3a61db87..111b7d94c9a 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) 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); |