linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2.6.10-rc2] ppc32: Fix __iomem warnings in TODC code
@ 2004-11-19 18:15 Tom Rini
  0 siblings, 0 replies; only message in thread
From: Tom Rini @ 2004-11-19 18:15 UTC (permalink / raw)
  To: Andrew Morton, linuxppc-embedded

A trivial fix for the __iomem warnings in arch/ppc/syslib/todc_time.c

Signed-off-by: Randy Vinson <rvinson@mvista.com>
Signed-off-by: Tom Rini <trini@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/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-11-19 18:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-19 18:15 [PATCH 2.6.10-rc2] ppc32: Fix __iomem warnings in TODC code Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).