diff options
Diffstat (limited to 'arch/powerpc/kernel/pci-common.c')
-rw-r--r-- | arch/powerpc/kernel/pci-common.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/kernel/pci-common.c index edef9afd8858..2aa04f29e1de 100644 --- a/arch/powerpc/kernel/pci-common.c +++ b/arch/powerpc/kernel/pci-common.c | |||
@@ -200,11 +200,6 @@ int pcibios_add_platform_entries(struct pci_dev *pdev) | |||
200 | return device_create_file(&pdev->dev, &dev_attr_devspec); | 200 | return device_create_file(&pdev->dev, &dev_attr_devspec); |
201 | } | 201 | } |
202 | 202 | ||
203 | char __devinit *pcibios_setup(char *str) | ||
204 | { | ||
205 | return str; | ||
206 | } | ||
207 | |||
208 | /* | 203 | /* |
209 | * Reads the interrupt pin to determine if interrupt is use by card. | 204 | * Reads the interrupt pin to determine if interrupt is use by card. |
210 | * If the interrupt is used, then gets the interrupt line from the | 205 | * If the interrupt is used, then gets the interrupt line from the |
@@ -1635,6 +1630,11 @@ void __devinit pcibios_scan_phb(struct pci_controller *hose) | |||
1635 | /* Wire up PHB bus resources */ | 1630 | /* Wire up PHB bus resources */ |
1636 | pcibios_setup_phb_resources(hose, &resources); | 1631 | pcibios_setup_phb_resources(hose, &resources); |
1637 | 1632 | ||
1633 | hose->busn.start = hose->first_busno; | ||
1634 | hose->busn.end = hose->last_busno; | ||
1635 | hose->busn.flags = IORESOURCE_BUS; | ||
1636 | pci_add_resource(&resources, &hose->busn); | ||
1637 | |||
1638 | /* Create an empty bus for the toplevel */ | 1638 | /* Create an empty bus for the toplevel */ |
1639 | bus = pci_create_root_bus(hose->parent, hose->first_busno, | 1639 | bus = pci_create_root_bus(hose->parent, hose->first_busno, |
1640 | hose->ops, hose, &resources); | 1640 | hose->ops, hose, &resources); |
@@ -1651,13 +1651,14 @@ void __devinit pcibios_scan_phb(struct pci_controller *hose) | |||
1651 | if (node && ppc_md.pci_probe_mode) | 1651 | if (node && ppc_md.pci_probe_mode) |
1652 | mode = ppc_md.pci_probe_mode(bus); | 1652 | mode = ppc_md.pci_probe_mode(bus); |
1653 | pr_debug(" probe mode: %d\n", mode); | 1653 | pr_debug(" probe mode: %d\n", mode); |
1654 | if (mode == PCI_PROBE_DEVTREE) { | 1654 | if (mode == PCI_PROBE_DEVTREE) |
1655 | bus->subordinate = hose->last_busno; | ||
1656 | of_scan_bus(node, bus); | 1655 | of_scan_bus(node, bus); |
1657 | } | ||
1658 | 1656 | ||
1659 | if (mode == PCI_PROBE_NORMAL) | 1657 | if (mode == PCI_PROBE_NORMAL) { |
1660 | hose->last_busno = bus->subordinate = pci_scan_child_bus(bus); | 1658 | pci_bus_update_busn_res_end(bus, 255); |
1659 | hose->last_busno = pci_scan_child_bus(bus); | ||
1660 | pci_bus_update_busn_res_end(bus, hose->last_busno); | ||
1661 | } | ||
1661 | 1662 | ||
1662 | /* Platform gets a chance to do some global fixups before | 1663 | /* Platform gets a chance to do some global fixups before |
1663 | * we proceed to resource allocation | 1664 | * we proceed to resource allocation |