aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/powerpc/sysdev/scom.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/powerpc/sysdev/scom.c b/arch/powerpc/sysdev/scom.c
index 413622d54395..cb20d542a5aa 100644
--- a/arch/powerpc/sysdev/scom.c
+++ b/arch/powerpc/sysdev/scom.c
@@ -196,8 +196,13 @@ static int scom_debug_init(void)
196 return -1; 196 return -1;
197 197
198 i = rc = 0; 198 i = rc = 0;
199 for_each_node_with_property(dn, "scom-controller") 199 for_each_node_with_property(dn, "scom-controller") {
200 rc |= scom_debug_init_one(root, dn, i++); 200 int id = of_get_ibm_chip_id(dn);
201 if (id == -1)
202 id = i;
203 rc |= scom_debug_init_one(root, dn, id);
204 i++;
205 }
201 206
202 return rc; 207 return rc;
203} 208}