aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYinghai Lu <yinghai@kernel.org>2012-05-17 21:51:13 -0400
committerBjorn Helgaas <bhelgaas@google.com>2012-06-13 17:42:25 -0400
commit6cda0fcf26df18f0e5476fbff12845cc46e1f41b (patch)
tree8cee16a1bc0ee115ff1ed5613ea88f07ac3873d3
parentf406384628e97618955e17e8d61e59d5ecdc9ca0 (diff)
PCI: shpchp: register busn_res
Signed-off-by: Yinghai Lu <yinghai@kernel.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
-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)
66 struct pci_bus *child; 66 struct pci_bus *child;
67 unsigned char busnr, start = parent->busn_res.start; 67 unsigned char busnr, start = parent->busn_res.start;
68 unsigned char end = parent->busn_res.end; 68 unsigned char end = parent->busn_res.end;
69 int max;
69 for (busnr = start; busnr <= end; busnr++) { 70 for (busnr = start; busnr <= end; busnr++) {
70 if (!pci_find_bus(pci_domain_nr(parent), 71 if (!pci_find_bus(pci_domain_nr(parent),
71 busnr)) 72 busnr))
@@ -84,7 +85,8 @@ int __ref shpchp_configure_device(struct slot *p_slot)
84 pci_dev_put(dev); 85 pci_dev_put(dev);
85 continue; 86 continue;
86 } 87 }
87 child->busn_res.end = pci_do_scan_bus(child); 88 max = pci_do_scan_bus(child);
89 pci_bus_update_busn_res_end(child, max);
88 pci_bus_size_bridges(child); 90 pci_bus_size_bridges(child);
89 } 91 }
90 pci_configure_slot(dev); 92 pci_configure_slot(dev);