aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r--arch/powerpc/platforms/chrp/setup.c4
-rw-r--r--arch/powerpc/platforms/maple/setup.c2
-rw-r--r--arch/powerpc/platforms/pasemi/setup.c2
-rw-r--r--arch/powerpc/platforms/pseries/setup.c4
-rw-r--r--arch/powerpc/platforms/pseries/xics.c2
5 files changed, 7 insertions, 7 deletions
diff --git a/arch/powerpc/platforms/chrp/setup.c b/arch/powerpc/platforms/chrp/setup.c
index 7bdfa6269aaf..044ad3f1e04a 100644
--- a/arch/powerpc/platforms/chrp/setup.c
+++ b/arch/powerpc/platforms/chrp/setup.c
@@ -361,7 +361,7 @@ static void __init chrp_find_openpic(void)
361 root = of_find_node_by_path("/"); 361 root = of_find_node_by_path("/");
362 if (root) { 362 if (root) {
363 opprop = get_property(root, "platform-open-pic", &oplen); 363 opprop = get_property(root, "platform-open-pic", &oplen);
364 na = prom_n_addr_cells(root); 364 na = of_n_addr_cells(root);
365 } 365 }
366 if (opprop && oplen >= na * sizeof(unsigned int)) { 366 if (opprop && oplen >= na * sizeof(unsigned int)) {
367 opaddr = opprop[na-1]; /* assume 32-bit */ 367 opaddr = opprop[na-1]; /* assume 32-bit */
@@ -468,7 +468,7 @@ static void __init chrp_find_8259(void)
468 468
469 if (addrp == NULL) 469 if (addrp == NULL)
470 continue; 470 continue;
471 chrp_int_ack = addrp[prom_n_addr_cells(np)-1]; 471 chrp_int_ack = addrp[of_n_addr_cells(np)-1];
472 break; 472 break;
473 } 473 }
474 if (np == NULL) 474 if (np == NULL)
diff --git a/arch/powerpc/platforms/maple/setup.c b/arch/powerpc/platforms/maple/setup.c
index 9389d29cd0be..f21add0e4786 100644
--- a/arch/powerpc/platforms/maple/setup.c
+++ b/arch/powerpc/platforms/maple/setup.c
@@ -248,7 +248,7 @@ static void __init maple_init_IRQ(void)
248 248
249 /* Find address list in /platform-open-pic */ 249 /* Find address list in /platform-open-pic */
250 root = of_find_node_by_path("/"); 250 root = of_find_node_by_path("/");
251 naddr = prom_n_addr_cells(root); 251 naddr = of_n_addr_cells(root);
252 opprop = get_property(root, "platform-open-pic", &opplen); 252 opprop = get_property(root, "platform-open-pic", &opplen);
253 if (opprop != 0) { 253 if (opprop != 0) {
254 openpic_addr = of_read_number(opprop, naddr); 254 openpic_addr = of_read_number(opprop, naddr);
diff --git a/arch/powerpc/platforms/pasemi/setup.c b/arch/powerpc/platforms/pasemi/setup.c
index 449cf1a08291..d4fd61328c8b 100644
--- a/arch/powerpc/platforms/pasemi/setup.c
+++ b/arch/powerpc/platforms/pasemi/setup.c
@@ -136,7 +136,7 @@ static __init void pas_init_IRQ(void)
136 136
137 /* Find address list in /platform-open-pic */ 137 /* Find address list in /platform-open-pic */
138 root = of_find_node_by_path("/"); 138 root = of_find_node_by_path("/");
139 naddr = prom_n_addr_cells(root); 139 naddr = of_n_addr_cells(root);
140 opprop = get_property(root, "platform-open-pic", &opplen); 140 opprop = get_property(root, "platform-open-pic", &opplen);
141 if (!opprop) { 141 if (!opprop) {
142 printk(KERN_ERR "No platform-open-pic property.\n"); 142 printk(KERN_ERR "No platform-open-pic property.\n");
diff --git a/arch/powerpc/platforms/pseries/setup.c b/arch/powerpc/platforms/pseries/setup.c
index ff87b1ad8ce9..54e93eb8a8ee 100644
--- a/arch/powerpc/platforms/pseries/setup.c
+++ b/arch/powerpc/platforms/pseries/setup.c
@@ -139,7 +139,7 @@ static void __init pseries_mpic_init_IRQ(void)
139 struct mpic *mpic; 139 struct mpic *mpic;
140 140
141 np = of_find_node_by_path("/"); 141 np = of_find_node_by_path("/");
142 naddr = prom_n_addr_cells(np); 142 naddr = of_n_addr_cells(np);
143 opprop = get_property(np, "platform-open-pic", &opplen); 143 opprop = get_property(np, "platform-open-pic", &opplen);
144 if (opprop != 0) { 144 if (opprop != 0) {
145 openpic_addr = of_read_number(opprop, naddr); 145 openpic_addr = of_read_number(opprop, naddr);
@@ -193,7 +193,7 @@ static void __init pseries_mpic_init_IRQ(void)
193 NULL); 193 NULL);
194 if (addrp == NULL) 194 if (addrp == NULL)
195 continue; 195 continue;
196 naddr = prom_n_addr_cells(np); 196 naddr = of_n_addr_cells(np);
197 intack = addrp[naddr-1]; 197 intack = addrp[naddr-1];
198 if (naddr > 1) 198 if (naddr > 1)
199 intack |= ((unsigned long)addrp[naddr-2]) << 32; 199 intack |= ((unsigned long)addrp[naddr-2]) << 32;
diff --git a/arch/powerpc/platforms/pseries/xics.c b/arch/powerpc/platforms/pseries/xics.c
index 81d172d65038..f0795faada91 100644
--- a/arch/powerpc/platforms/pseries/xics.c
+++ b/arch/powerpc/platforms/pseries/xics.c
@@ -643,7 +643,7 @@ static void __init xics_setup_8259_cascade(void)
643 addrp = get_property(np, "8259-interrupt-acknowledge", NULL); 643 addrp = get_property(np, "8259-interrupt-acknowledge", NULL);
644 if (addrp == NULL) 644 if (addrp == NULL)
645 continue; 645 continue;
646 naddr = prom_n_addr_cells(np); 646 naddr = of_n_addr_cells(np);
647 intack = addrp[naddr-1]; 647 intack = addrp[naddr-1];
648 if (naddr > 1) 648 if (naddr > 1)
649 intack |= ((unsigned long)addrp[naddr-2]) << 32; 649 intack |= ((unsigned long)addrp[naddr-2]) << 32;