aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc64/kernel/of_device.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-09-12 02:53:41 -0400
committerDavid S. Miller <davem@davemloft.net>2008-09-12 02:53:41 -0400
commit21cd8833933ef20a0bbb368ea00876cbfc06141b (patch)
tree484a62d03525d32e23fbc7bd6b65038d751da87c /arch/sparc64/kernel/of_device.c
parentc91e2ecad0a392604ece6e53d38b484918060825 (diff)
sparc64: Fix sparse warnings in of_device.c
Passing unsigned int pointer where plain int pointer is expected. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel/of_device.c')
-rw-r--r--arch/sparc64/kernel/of_device.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/sparc64/kernel/of_device.c b/arch/sparc64/kernel/of_device.c
index 5c4fbc23aeea..ef05d14bd7f1 100644
--- a/arch/sparc64/kernel/of_device.c
+++ b/arch/sparc64/kernel/of_device.c
@@ -401,8 +401,7 @@ static int __init build_one_resource(struct device_node *parent,
401 int na, int ns, int pna) 401 int na, int ns, int pna)
402{ 402{
403 const u32 *ranges; 403 const u32 *ranges;
404 unsigned int rlen; 404 int rone, rlen;
405 int rone;
406 405
407 ranges = of_get_property(parent, "ranges", &rlen); 406 ranges = of_get_property(parent, "ranges", &rlen);
408 if (ranges == NULL || rlen == 0) { 407 if (ranges == NULL || rlen == 0) {