aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/pci/hotplug/shpchp_pci.c
diff options
context:
space:
mode:
authorYinghai Lu <yinghai@kernel.org>2012-05-17 18:51:13 -0700
committerBjorn Helgaas <bhelgaas@google.com>2012-06-13 15:42:25 -0600
commit6cda0fcf26df18f0e5476fbff12845cc46e1f41b (patch)
tree8cee16a1bc0ee115ff1ed5613ea88f07ac3873d3 /drivers/pci/hotplug/shpchp_pci.c
parentPCI: cpci_hotplug: register busn_res (diff)
downloadwireguard-linux-6cda0fcf26df18f0e5476fbff12845cc46e1f41b.tar.xz
wireguard-linux-6cda0fcf26df18f0e5476fbff12845cc46e1f41b.zip
PCI: shpchp: register busn_res
Signed-off-by: Yinghai Lu <yinghai@kernel.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/hotplug/shpchp_pci.c')
-rw-r--r--drivers/pci/hotplug/shpchp_pci.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/pci/hotplug/shpchp_pci.c b/drivers/pci/hotplug/shpchp_pci.c
index d021eb031b3c..13069802b8c8 100644
--- a/drivers/pci/hotplug/shpchp_pci.c
+++ b/drivers/pci/hotplug/shpchp_pci.c
@@ -66,6 +66,7 @@ int __ref shpchp_configure_device(struct slot *p_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),
busnr))
@@ -84,7 +85,8 @@ int __ref shpchp_configure_device(struct slot *p_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_configure_slot(dev);