aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/chrp
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/platforms/chrp')
-rw-r--r--arch/powerpc/platforms/chrp/setup.c4
1 files changed, 2 insertions, 2 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)