diff options
author | Andres Salomon <dilinger@queued.net> | 2010-10-08 17:18:11 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2010-10-09 04:33:34 -0400 |
commit | 8d1255627d4ce9cb4b9d0a1c44b6c18d92e84a99 (patch) | |
tree | 0167da953304dbabc87ab871368bcc3c10660fa8 /arch/sparc/prom/memory.c | |
parent | 4e13efc99106723960a27e55f560028bced5076d (diff) |
of/sparc: convert various prom_* functions to use phandle
Rather than passing around ints everywhere, use the
phandle type where appropriate for the various functions
that talk to the PROM.
Signed-off-by: Andres Salomon <dilinger@queued.net>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'arch/sparc/prom/memory.c')
-rw-r--r-- | arch/sparc/prom/memory.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/sparc/prom/memory.c b/arch/sparc/prom/memory.c index fac7899a29c3..3f263a64857d 100644 --- a/arch/sparc/prom/memory.c +++ b/arch/sparc/prom/memory.c | |||
@@ -31,7 +31,8 @@ static int __init prom_meminit_v0(void) | |||
31 | static int __init prom_meminit_v2(void) | 31 | static int __init prom_meminit_v2(void) |
32 | { | 32 | { |
33 | struct linux_prom_registers reg[64]; | 33 | struct linux_prom_registers reg[64]; |
34 | int node, size, num_ents, i; | 34 | phandle node; |
35 | int size, num_ents, i; | ||
35 | 36 | ||
36 | node = prom_searchsiblings(prom_getchild(prom_root_node), "memory"); | 37 | node = prom_searchsiblings(prom_getchild(prom_root_node), "memory"); |
37 | size = prom_getproperty(node, "available", (char *) reg, sizeof(reg)); | 38 | size = prom_getproperty(node, "available", (char *) reg, sizeof(reg)); |