[PATCH 2.6.10-rc2] ppc32: Fix __iomem warnings in TODC code
Tom Rini
trini at kernel.crashing.org
Sat Nov 20 05:15:25 EST 2004
A trivial fix for the __iomem warnings in arch/ppc/syslib/todc_time.c
Signed-off-by: Randy Vinson <rvinson at mvista.com>
Signed-off-by: Tom Rini <trini at kernel.crashing.org>
--- a/arch/ppc/syslib/todc_time.c 2004-10-29 18:29:54.000000000 -0700
+++ b/arch/ppc/syslib/todc_time.c 2004-10-29 18:40:10.000000000 -0700
@@ -82,13 +82,13 @@ extern spinlock_t rtc_lock;
u_char
todc_direct_read_val(int addr)
{
- return readb(todc_info->nvram_data + addr);
+ return readb((void __iomem *)(todc_info->nvram_data + addr));
}
void
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;
}
--
Tom Rini
http://gate.crashing.org/~trini/
More information about the Linuxppc-embedded
mailing list