summaryrefslogtreecommitdiff
path: root/arch/sparc/kernel/starfire.c
diff options
context:
space:
mode:
authorAndres Salomon <dilinger@queued.net>2010-10-09 01:18:11 +0400
committerGrant Likely <grant.likely@secretlab.ca>2010-10-09 12:33:34 +0400
commit8d1255627d4ce9cb4b9d0a1c44b6c18d92e84a99 (patch)
tree0167da953304dbabc87ab871368bcc3c10660fa8 /arch/sparc/kernel/starfire.c
parent4e13efc99106723960a27e55f560028bced5076d (diff)
downloadlinux-8d1255627d4ce9cb4b9d0a1c44b6c18d92e84a99.tar.xz
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/starfire.c')
-rw-r--r--arch/sparc/kernel/starfire.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/kernel/starfire.c b/arch/sparc/kernel/starfire.c
index 060d0f3a6151..a4446c0fb7a1 100644
--- a/arch/sparc/kernel/starfire.c
+++ b/arch/sparc/kernel/starfire.c
@@ -23,7 +23,7 @@ int this_is_starfire = 0;
void check_if_starfire(void)
{
- int ssnode = prom_finddevice("/ssp-serial");
+ phandle ssnode = prom_finddevice("/ssp-serial");
if (ssnode != 0 && ssnode != -1)
this_is_starfire = 1;
}