diff options
Diffstat (limited to 'drivers/pci/hotplug/ibmphp_core.c')
| -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) | |||
| 805 | } | 805 | } |
| 806 | } | 806 | } |
| 807 | if (!(flag) && (func->dev->hdr_type == PCI_HEADER_TYPE_BRIDGE)) { | 807 | if (!(flag) && (func->dev->hdr_type == PCI_HEADER_TYPE_BRIDGE)) { |
| 808 | int max; | ||
| 808 | pci_read_config_byte(func->dev, PCI_SECONDARY_BUS, &bus); | 809 | pci_read_config_byte(func->dev, PCI_SECONDARY_BUS, &bus); |
| 809 | child = pci_add_new_bus(func->dev->bus, func->dev, bus); | 810 | child = pci_add_new_bus(func->dev->bus, func->dev, bus); |
| 810 | pci_do_scan_bus(child); | 811 | max = pci_do_scan_bus(child); |
| 812 | pci_bus_update_busn_res_end(child, max); | ||
| 811 | } | 813 | } |
| 812 | 814 | ||
| 813 | return 0; | 815 | return 0; |
