MIPS: AR7: Fix build warning on memory.c
authorFlorian Fainelli <florian@openwrt.org>
Tue, 21 Jul 2009 10:38:10 +0000 (12:38 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 3 Aug 2009 16:52:44 +0000 (17:52 +0100)
This patch fixes the following build warning:
arch/mips/ar7/memory.c: In function 'memsize':
arch/mips/ar7/memory.c:55: warning: passing argument 1 of 'writel' makes integer from pointer without a cast

Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/ar7/memory.c

index 46fed44825a6eb00719c05fb8a2eadec482a2842..696c723dc6d42629cab14aedeb62aef983cf59ed 100644 (file)
@@ -52,7 +52,7 @@ static int __init memsize(void)
                size <<= 1;
        } while (size < (64 << 20));
 
-       writel(tmpaddr, &addr);
+       writel((u32)tmpaddr, &addr);
 
        return size;
 }