aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-05-20 13:24:39 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-05-24 04:13:44 -0400
commitbee7dd9c5fd5ab944e2e0ef3b92905fcbc993768 (patch)
treeea46f4e4fdf9bfa86841a801c853a33a75614cfa /arch/powerpc
parent8fc1f5d7eff9a4ed0cdb7215e7ca4b82b931d6d7 (diff)
powerpc/pci: Fix bogus message at boot about empty memory resources
The message is only meant to be displayed if resource 0 is empty, but was displayed if any is. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/kernel/pci-common.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/kernel/pci-common.c
index 6053f037ef0a..e9acf50dd5b2 100644
--- a/arch/powerpc/kernel/pci-common.c
+++ b/arch/powerpc/kernel/pci-common.c
@@ -1520,9 +1520,10 @@ static void pcibios_setup_phb_resources(struct pci_controller *hose,
1520 for (i = 0; i < 3; ++i) { 1520 for (i = 0; i < 3; ++i) {
1521 res = &hose->mem_resources[i]; 1521 res = &hose->mem_resources[i];
1522 if (!res->flags) { 1522 if (!res->flags) {
1523 printk(KERN_ERR "PCI: Memory resource 0 not set for " 1523 if (i == 0)
1524 "host bridge %s (domain %d)\n", 1524 printk(KERN_ERR "PCI: Memory resource 0 not set for "
1525 hose->dn->full_name, hose->global_number); 1525 "host bridge %s (domain %d)\n",
1526 hose->dn->full_name, hose->global_number);
1526 continue; 1527 continue;
1527 } 1528 }
1528 offset = hose->mem_offset[i]; 1529 offset = hose->mem_offset[i];