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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
index 9f68b9d3597c..08404098080b 100644
--- a/drivers/pci/probe.c
+++ b/drivers/pci/probe.c
@@ -755,7 +755,7 @@ int __devinit pci_scan_bridge(struct pci_bus *bus, struct pci_dev *dev, int max,
755 if (!child) 755 if (!child)
756 goto out; 756 goto out;
757 child->primary = primary; 757 child->primary = primary;
758 child->busn_res.end = subordinate; 758 pci_bus_insert_busn_res(child, secondary, subordinate);
759 child->bridge_ctl = bctl; 759 child->bridge_ctl = bctl;
760 } 760 }
761 761
@@ -793,6 +793,7 @@ int __devinit pci_scan_bridge(struct pci_bus *bus, struct pci_dev *dev, int max,
793 child = pci_add_new_bus(bus, dev, ++max); 793 child = pci_add_new_bus(bus, dev, ++max);
794 if (!child) 794 if (!child)
795 goto out; 795 goto out;
796 pci_bus_insert_busn_res(child, max, 0xff);
796 } 797 }
797 buses = (buses & 0xff000000) 798 buses = (buses & 0xff000000)
798 | ((unsigned int)(child->primary) << 0) 799 | ((unsigned int)(child->primary) << 0)
@@ -864,7 +865,7 @@ int __devinit pci_scan_bridge(struct pci_bus *bus, struct pci_dev *dev, int max,
864 /* 865 /*
865 * Set the subordinate bus number to its real value. 866 * Set the subordinate bus number to its real value.
866 */ 867 */
867 child->busn_res.end = max; 868 pci_bus_update_busn_res_end(child, max);
868 pci_write_config_byte(dev, PCI_SUBORDINATE_BUS, max); 869 pci_write_config_byte(dev, PCI_SUBORDINATE_BUS, max);
869 } 870 }
870 871