Commit 7b254f6b authored by Tom Rini's avatar Tom Rini Committed by Linus Torvalds

[PATCH] ppc32: Fix __iomem warnings in TODC code

A trivial fix for the __iomem warnings in arch/ppc/syslib/todc_time.c
Signed-off-by: default avatarRandy Vinson <rvinson@mvista.com>
Signed-off-by: default avatarTom Rini <trini@kernel.crashing.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent a0d93f37
...@@ -81,13 +81,13 @@ ...@@ -81,13 +81,13 @@
u_char u_char
todc_direct_read_val(int addr) todc_direct_read_val(int addr)
{ {
return readb(todc_info->nvram_data + addr); return readb((void __iomem *)(todc_info->nvram_data + addr));
} }
void void
todc_direct_write_val(int addr, unsigned char val) todc_direct_write_val(int addr, unsigned char val)
{ {
writeb(val, todc_info->nvram_data + addr); writeb(val, (void __iomem *)(todc_info->nvram_data + addr));
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment