aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/probe.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/probe.c')
-rw-r--r--drivers/pci/probe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
index 7d171f83257f..6a0a82f0508b 100644
--- a/drivers/pci/probe.c
+++ b/drivers/pci/probe.c
@@ -450,7 +450,7 @@ int __devinit pci_scan_bridge(struct pci_bus *bus, struct pci_dev * dev, int max
450 return max; 450 return max;
451 } 451 }
452 452
453 child = pci_alloc_child_bus(bus, dev, busnr); 453 child = pci_add_new_bus(bus, dev, busnr);
454 if (!child) 454 if (!child)
455 return max; 455 return max;
456 child->primary = buses & 0xFF; 456 child->primary = buses & 0xFF;
@@ -477,7 +477,7 @@ int __devinit pci_scan_bridge(struct pci_bus *bus, struct pci_dev * dev, int max
477 * This can happen when a bridge is hot-plugged */ 477 * This can happen when a bridge is hot-plugged */
478 if (pci_find_bus(pci_domain_nr(bus), max+1)) 478 if (pci_find_bus(pci_domain_nr(bus), max+1))
479 return max; 479 return max;
480 child = pci_alloc_child_bus(bus, dev, ++max); 480 child = pci_add_new_bus(bus, dev, ++max);
481 buses = (buses & 0xff000000) 481 buses = (buses & 0xff000000)
482 | ((unsigned int)(child->primary) << 0) 482 | ((unsigned int)(child->primary) << 0)
483 | ((unsigned int)(child->secondary) << 8) 483 | ((unsigned int)(child->secondary) << 8)