diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-04-02 20:57:48 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-04-12 13:55:18 -0400 |
commit | 9213feea6e197f8507ec855337798cc3388f5570 (patch) | |
tree | da8015e33f1a242a050ef62603bdc53a7982441c /arch/powerpc/kernel/prom_parse.c | |
parent | a8bda5dd4f99d6469f3c0dc362db3cce8a4d6416 (diff) |
[POWERPC] Rename prom_n_size_cells to of_n_size_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/kernel/prom_parse.c')
-rw-r--r-- | arch/powerpc/kernel/prom_parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/prom_parse.c b/arch/powerpc/kernel/prom_parse.c index e3d036fa6059..ba9c7c1e4108 100644 --- a/arch/powerpc/kernel/prom_parse.c +++ b/arch/powerpc/kernel/prom_parse.c | |||
@@ -70,7 +70,7 @@ static void of_bus_default_count_cells(struct device_node *dev, | |||
70 | if (addrc) | 70 | if (addrc) |
71 | *addrc = of_n_addr_cells(dev); | 71 | *addrc = of_n_addr_cells(dev); |
72 | if (sizec) | 72 | if (sizec) |
73 | *sizec = prom_n_size_cells(dev); | 73 | *sizec = of_n_size_cells(dev); |
74 | } | 74 | } |
75 | 75 | ||
76 | static u64 of_bus_default_map(u32 *addr, const u32 *range, | 76 | static u64 of_bus_default_map(u32 *addr, const u32 *range, |
@@ -660,7 +660,7 @@ void of_parse_dma_window(struct device_node *dn, const void *dma_window_prop, | |||
660 | dma_window += cells; | 660 | dma_window += cells; |
661 | 661 | ||
662 | prop = get_property(dn, "ibm,#dma-size-cells", NULL); | 662 | prop = get_property(dn, "ibm,#dma-size-cells", NULL); |
663 | cells = prop ? *(u32 *)prop : prom_n_size_cells(dn); | 663 | cells = prop ? *(u32 *)prop : of_n_size_cells(dn); |
664 | *size = of_read_number(dma_window, cells); | 664 | *size = of_read_number(dma_window, cells); |
665 | } | 665 | } |
666 | 666 | ||