sparc: explicitly cast negative phandle checks to s32
authorAndres Salomon <dilinger@queued.net>
Fri, 12 Nov 2010 06:42:06 +0000 (22:42 -0800)
committerGrant Likely <grant.likely@secretlab.ca>
Tue, 4 Jan 2011 03:02:06 +0000 (20:02 -0700)
commit4a3a255289e7e322b8044286cce85031990f888a
tree60afe5f0fc76b2b4edb5374023806e26fc50fb4a
parent301a3da358b4af84915f575479e4f0885be47b73
sparc: explicitly cast negative phandle checks to s32

When we switched sparc from using 'int's to 'phandle's (which is a u32), we
neglected to do anything with the various checks for -1.  For those tests,
explicitly cast the phandles to s32.

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>
arch/sparc/kernel/auxio_32.c
arch/sparc/kernel/starfire.c
arch/sparc/prom/init_32.c
arch/sparc/prom/init_64.c
arch/sparc/prom/tree_32.c
arch/sparc/prom/tree_64.c
drivers/sbus/char/jsflash.c