[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
@@ -139,7 +139,7 @@ static void __init pseries_mpic_init_IRQ(void)
|
||||
struct mpic *mpic;
|
||||
|
||||
np = of_find_node_by_path("/");
|
||||
naddr = prom_n_addr_cells(np);
|
||||
naddr = of_n_addr_cells(np);
|
||||
opprop = get_property(np, "platform-open-pic", &opplen);
|
||||
if (opprop != 0) {
|
||||
openpic_addr = of_read_number(opprop, naddr);
|
||||
@@ -193,7 +193,7 @@ static void __init pseries_mpic_init_IRQ(void)
|
||||
NULL);
|
||||
if (addrp == NULL)
|
||||
continue;
|
||||
naddr = prom_n_addr_cells(np);
|
||||
naddr = of_n_addr_cells(np);
|
||||
intack = addrp[naddr-1];
|
||||
if (naddr > 1)
|
||||
intack |= ((unsigned long)addrp[naddr-2]) << 32;
|
||||
|
Reference in New Issue
Block a user