Skip to content

Commit

Permalink
MIPS: AR7: Fix build warning on memory.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Florian Fainelli authored and Ralf Baechle committed Aug 3, 2009
1 parent 838c057 commit dd34b5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/ar7/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ static int __init memsize(void)
size <<= 1;
} while (size < (64 << 20));

writel(tmpaddr, &addr);
writel((u32)tmpaddr, &addr);

return size;
}
Expand Down

0 comments on commit dd34b5a

Please sign in to comment.