diff options
author | Yinghai Lu <yinghai@kernel.org> | 2012-05-17 21:51:13 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2012-06-13 17:42:25 -0400 |
commit | 450878759aa10c6d172a0cafd5922b23a3b4547a (patch) | |
tree | 88ffcc610ca454c22f79845a78a8a087a4bc455c /drivers/pci | |
parent | 6cda0fcf26df18f0e5476fbff12845cc46e1f41b (diff) |
PCI: cpqhp: register busn_res
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/hotplug/cpqphp_pci.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/pci/hotplug/cpqphp_pci.c b/drivers/pci/hotplug/cpqphp_pci.c index 1c8494021a42..24716725263f 100644 --- a/drivers/pci/hotplug/cpqphp_pci.c +++ b/drivers/pci/hotplug/cpqphp_pci.c | |||
@@ -106,9 +106,11 @@ int cpqhp_configure_device (struct controller* ctrl, struct pci_func* func) | |||
106 | } | 106 | } |
107 | 107 | ||
108 | if (func->pci_dev->hdr_type == PCI_HEADER_TYPE_BRIDGE) { | 108 | if (func->pci_dev->hdr_type == PCI_HEADER_TYPE_BRIDGE) { |
109 | int max; | ||
109 | pci_read_config_byte(func->pci_dev, PCI_SECONDARY_BUS, &bus); | 110 | pci_read_config_byte(func->pci_dev, PCI_SECONDARY_BUS, &bus); |
110 | child = (struct pci_bus*) pci_add_new_bus(func->pci_dev->bus, (func->pci_dev), bus); | 111 | child = (struct pci_bus*) pci_add_new_bus(func->pci_dev->bus, (func->pci_dev), bus); |
111 | pci_do_scan_bus(child); | 112 | max = pci_do_scan_bus(child); |
113 | pci_bus_update_busn_res_end(child, max); | ||
112 | } | 114 | } |
113 | 115 | ||
114 | pci_dev_put(func->pci_dev); | 116 | pci_dev_put(func->pci_dev); |