diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-04-03 10:56:50 +1000 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-04-13 03:55:18 +1000 |
commit | a8bda5dd4f99d6469f3c0dc362db3cce8a4d6416 (patch) | |
tree | 513cb0896e142b5eca6fd445cde11b651f408824 /arch/powerpc/platforms/chrp/setup.c | |
parent | 7a92f74f98bde8498c98aad6cac5da5a87dd0bf4 (diff) | |
download | blackbird-op-linux-a8bda5dd4f99d6469f3c0dc362db3cce8a4d6416.tar.gz blackbird-op-linux-a8bda5dd4f99d6469f3c0dc362db3cce8a4d6416.zip |
[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/setup.c')
-rw-r--r-- | arch/powerpc/platforms/chrp/setup.c | 4 |
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) root = of_find_node_by_path("/"); if (root) { opprop = get_property(root, "platform-open-pic", &oplen); - na = prom_n_addr_cells(root); + na = of_n_addr_cells(root); } if (opprop && oplen >= na * sizeof(unsigned int)) { opaddr = opprop[na-1]; /* assume 32-bit */ @@ -468,7 +468,7 @@ static void __init chrp_find_8259(void) if (addrp == NULL) continue; - chrp_int_ack = addrp[prom_n_addr_cells(np)-1]; + chrp_int_ack = addrp[of_n_addr_cells(np)-1]; break; } if (np == NULL) |