aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/chrp
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2007-04-02 20:56:50 -0400
committerPaul Mackerras <paulus@samba.org>2007-04-12 13:55:18 -0400
commita8bda5dd4f99d6469f3c0dc362db3cce8a4d6416 (patch)
tree513cb0896e142b5eca6fd445cde11b651f408824 /arch/powerpc/platforms/chrp
parent7a92f74f98bde8498c98aad6cac5da5a87dd0bf4 (diff)
[POWERPC] Rename prom_n_addr_cells to of_n_addr_cells
This is more consistent and gets us closer to the Sparc code. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
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)