[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>
This commit is contained in:
committed by
Paul Mackerras
parent
7a92f74f98
commit
a8bda5dd4f
@@ -248,7 +248,7 @@ static void __init maple_init_IRQ(void)
|
||||
|
||||
/* Find address list in /platform-open-pic */
|
||||
root = of_find_node_by_path("/");
|
||||
naddr = prom_n_addr_cells(root);
|
||||
naddr = of_n_addr_cells(root);
|
||||
opprop = get_property(root, "platform-open-pic", &opplen);
|
||||
if (opprop != 0) {
|
||||
openpic_addr = of_read_number(opprop, naddr);
|
||||
|
Reference in New Issue
Block a user