ar7: fix build warning on memory.c
PATCH 2/2 ar7: fix build warning on memory.c
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 <[email protected]>
---
arch/mips/ar7/memory.c +1 -1
@@ -52,7 +52,7 @@ static int __init memsize(void) size <<=1 ; }while (size < (64 <<20 )); -writel (tmpaddr, &addr); +writel ((u32 )tmpaddr, &addr);return size; }
Ralf Baechle
AppliedOn Tue, Jul 21, 2009 at 12:38:10PM +0200, Florian Fainelli wrote:
Thanks, applied.
Ralf