aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r--arch/powerpc/kernel/pci_64.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/arch/powerpc/kernel/pci_64.c b/arch/powerpc/kernel/pci_64.c
index 1930f393d01c..52750745edfd 100644
--- a/arch/powerpc/kernel/pci_64.c
+++ b/arch/powerpc/kernel/pci_64.c
@@ -357,7 +357,6 @@ void __devinit scan_phb(struct pci_controller *hose)
357 struct pci_bus *bus; 357 struct pci_bus *bus;
358 struct device_node *node = hose->dn; 358 struct device_node *node = hose->dn;
359 int i, mode; 359 int i, mode;
360 struct resource *res;
361 360
362 DBG("PCI: Scanning PHB %s\n", node ? node->full_name : "<NO NAME>"); 361 DBG("PCI: Scanning PHB %s\n", node ? node->full_name : "<NO NAME>");
363 362
@@ -375,12 +374,10 @@ void __devinit scan_phb(struct pci_controller *hose)
375 pcibios_map_io_space(bus); 374 pcibios_map_io_space(bus);
376 375
377 /* Wire up PHB bus resources */ 376 /* Wire up PHB bus resources */
378 if (hose->io_resource.flags) { 377 DBG("PCI: PHB IO resource = %016lx-%016lx [%lx]\n",
379 DBG("PCI: PHB IO resource = %016lx-%016lx [%lx]\n", 378 hose->io_resource.start, hose->io_resource.end,
380 hose->io_resource.start, hose->io_resource.end, 379 hose->io_resource.flags);
381 hose->io_resource.flags); 380 bus->resource[0] = &hose->io_resource;
382 bus->resource[0] = res = &hose->io_resource;
383 }
384 for (i = 0; i < 3; ++i) { 381 for (i = 0; i < 3; ++i) {
385 DBG("PCI: PHB MEM resource %d = %016lx-%016lx [%lx]\n", i, 382 DBG("PCI: PHB MEM resource %d = %016lx-%016lx [%lx]\n", i,
386 hose->mem_resources[i].start, 383 hose->mem_resources[i].start,