aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/ar7/memory.c
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2009-07-21 06:38:10 -0400
committerRalf Baechle <ralf@linux-mips.org>2009-08-03 12:52:44 -0400
commitdd34b5a82feadfaee4f8dea83a694d9349f94a28 (patch)
treee2f17d411a511441dd23413574f428b95896b2aa /arch/mips/ar7/memory.c
parent838c05705ef8c110037a713526bb18762db0a241 (diff)
MIPS: 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 <florian@openwrt.org> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/ar7/memory.c')
-rw-r--r--arch/mips/ar7/memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/ar7/memory.c b/arch/mips/ar7/memory.c
index 46fed44825a6..696c723dc6d4 100644
--- a/arch/mips/ar7/memory.c
+++ b/arch/mips/ar7/memory.c
@@ -52,7 +52,7 @@ static int __init memsize(void)
52 size <<= 1; 52 size <<= 1;
53 } while (size < (64 << 20)); 53 } while (size < (64 << 20));
54 54
55 writel(tmpaddr, &addr); 55 writel((u32)tmpaddr, &addr);
56 56
57 return size; 57 return size;
58} 58}