aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/hotplug/ibmphp_core.c8
-rw-r--r--drivers/pci/probe.c1
2 files changed, 6 insertions, 3 deletions
diff --git a/drivers/pci/hotplug/ibmphp_core.c b/drivers/pci/hotplug/ibmphp_core.c
index 96c5c729cdbc..15302475f5b7 100644
--- a/drivers/pci/hotplug/ibmphp_core.c
+++ b/drivers/pci/hotplug/ibmphp_core.c
@@ -738,7 +738,7 @@ static void ibm_unconfigure_device(struct pci_func *func)
738 */ 738 */
739static u8 bus_structure_fixup(u8 busno) 739static u8 bus_structure_fixup(u8 busno)
740{ 740{
741 struct pci_bus *bus; 741 struct pci_bus *bus, *b;
742 struct pci_dev *dev; 742 struct pci_dev *dev;
743 u16 l; 743 u16 l;
744 744
@@ -765,7 +765,11 @@ static u8 bus_structure_fixup(u8 busno)
765 (l != 0x0000) && (l != 0xffff)) { 765 (l != 0x0000) && (l != 0xffff)) {
766 debug("%s - Inside bus_structure_fixup()\n", 766 debug("%s - Inside bus_structure_fixup()\n",
767 __func__); 767 __func__);
768 pci_scan_bus(busno, ibmphp_pci_bus->ops, NULL); 768 b = pci_scan_bus(busno, ibmphp_pci_bus->ops, NULL);
769 if (!b)
770 continue;
771
772 pci_bus_add_devices(b);
769 break; 773 break;
770 } 774 }
771 } 775 }
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
index 8d2f400e96cb..88604f29d140 100644
--- a/drivers/pci/probe.c
+++ b/drivers/pci/probe.c
@@ -2123,7 +2123,6 @@ struct pci_bus *pci_scan_bus(int bus, struct pci_ops *ops,
2123 b = pci_create_root_bus(NULL, bus, ops, sysdata, &resources); 2123 b = pci_create_root_bus(NULL, bus, ops, sysdata, &resources);
2124 if (b) { 2124 if (b) {
2125 pci_scan_child_bus(b); 2125 pci_scan_child_bus(b);
2126 pci_bus_add_devices(b);
2127 } else { 2126 } else {
2128 pci_free_resource_list(&resources); 2127 pci_free_resource_list(&resources);
2129 } 2128 }