From: David S. Miller Date: Fri, 12 Sep 2008 06:53:41 +0000 (-0700) Subject: sparc64: Fix sparse warnings in of_device.c X-Git-Tag: v2.6.28-rc1~706^2~29 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=21cd8833933ef20a0bbb368ea00876cbfc06141b;p=linux-2.6-omap-h63xx.git sparc64: Fix sparse warnings in of_device.c Passing unsigned int pointer where plain int pointer is expected. Signed-off-by: David S. Miller --- diff --git a/arch/sparc64/kernel/of_device.c b/arch/sparc64/kernel/of_device.c index 5c4fbc23aee..ef05d14bd7f 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, int na, int ns, int pna) { const u32 *ranges; - unsigned int rlen; - int rone; + int rone, rlen; ranges = of_get_property(parent, "ranges", &rlen); if (ranges == NULL || rlen == 0) {