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 | d0a350fe57c0a4014a8eccf8166d7dc2e599ce5c (patch) | |
tree | dc13184ff66e43f28ca5e3eb60d0bb8d9e3f181b | |
parent | 450878759aa10c6d172a0cafd5922b23a3b4547a (diff) | |
download | linux-3.10-d0a350fe57c0a4014a8eccf8166d7dc2e599ce5c.tar.gz linux-3.10-d0a350fe57c0a4014a8eccf8166d7dc2e599ce5c.tar.bz2 linux-3.10-d0a350fe57c0a4014a8eccf8166d7dc2e599ce5c.zip |
PCI: ibmhp: 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/ibmphp_core.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/pci/hotplug/ibmphp_core.c b/drivers/pci/hotplug/ibmphp_core.c index 4fda7e6a86a..a62f296e8b0 100644 --- a/drivers/pci/hotplug/ibmphp_core.c +++ b/drivers/pci/hotplug/ibmphp_core.c @@ -805,9 +805,11 @@ static int ibm_configure_device(struct pci_func *func) } } if (!(flag) && (func->dev->hdr_type == PCI_HEADER_TYPE_BRIDGE)) { + int max; pci_read_config_byte(func->dev, PCI_SECONDARY_BUS, &bus); child = pci_add_new_bus(func->dev->bus, func->dev, bus); - pci_do_scan_bus(child); + max = pci_do_scan_bus(child); + pci_bus_update_busn_res_end(child, max); } return 0; |