summaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/auxio_32.c
diff options
context:
space:
mode:
authorAndres Salomon <dilinger@queued.net>2010-10-08 23:18:11 +0200
committerGrant Likely <grant.likely@secretlab.ca>2010-10-09 10:33:34 +0200
commit8d1255627d4ce9cb4b9d0a1c44b6c18d92e84a99 (patch)
tree0167da953304dbabc87ab871368bcc3c10660fa8 /arch/sparc/kernel/auxio_32.c
parentsparc: stop exporting openprom.h header (diff)
downloadlinux-8d1255627d4ce9cb4b9d0a1c44b6c18d92e84a99.tar.xz
linux-8d1255627d4ce9cb4b9d0a1c44b6c18d92e84a99.zip
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/kernel/auxio_32.c')
-rw-r--r--arch/sparc/kernel/auxio_32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sparc/kernel/auxio_32.c b/arch/sparc/kernel/auxio_32.c
index ee8d214cae1e..35f48837871a 100644
--- a/arch/sparc/kernel/auxio_32.c
+++ b/arch/sparc/kernel/auxio_32.c
@@ -23,7 +23,7 @@ static DEFINE_SPINLOCK(auxio_lock);
void __init auxio_probe(void)
{
- int node, auxio_nd;
+ phandle node, auxio_nd;
struct linux_prom_registers auxregs[1];
struct resource r;
@@ -113,7 +113,7 @@ volatile unsigned char * auxio_power_register = NULL;
void __init auxio_power_probe(void)
{
struct linux_prom_registers regs;
- int node;
+ phandle node;
struct resource r;
/* Attempt to find the sun4m power control node. */