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/misc_64.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/misc_64.c')
-rw-r--r-- | arch/sparc/prom/misc_64.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/sparc/prom/misc_64.c b/arch/sparc/prom/misc_64.c index 6cb1581d6aef..d24bc44e361e 100644 --- a/arch/sparc/prom/misc_64.c +++ b/arch/sparc/prom/misc_64.c | |||
@@ -183,7 +183,8 @@ unsigned char prom_get_idprom(char *idbuf, int num_bytes) | |||
183 | 183 | ||
184 | int prom_get_mmu_ihandle(void) | 184 | int prom_get_mmu_ihandle(void) |
185 | { | 185 | { |
186 | int node, ret; | 186 | phandle node; |
187 | int ret; | ||
187 | 188 | ||
188 | if (prom_mmu_ihandle_cache != 0) | 189 | if (prom_mmu_ihandle_cache != 0) |
189 | return prom_mmu_ihandle_cache; | 190 | return prom_mmu_ihandle_cache; |
@@ -201,7 +202,8 @@ int prom_get_mmu_ihandle(void) | |||
201 | static int prom_get_memory_ihandle(void) | 202 | static int prom_get_memory_ihandle(void) |
202 | { | 203 | { |
203 | static int memory_ihandle_cache; | 204 | static int memory_ihandle_cache; |
204 | int node, ret; | 205 | phandle node; |
206 | int ret; | ||
205 | 207 | ||
206 | if (memory_ihandle_cache != 0) | 208 | if (memory_ihandle_cache != 0) |
207 | return memory_ihandle_cache; | 209 | return memory_ihandle_cache; |