[PATCH 02/12] ARM: guf-cupid: Use __iomem specifier for memory pointer

Alexander Shiyan shc_work at mail.ru
Sat Jan 25 14:34:18 EST 2014


Signed-off-by: Alexander Shiyan <shc_work at mail.ru>
---
 arch/arm/boards/guf-cupid/lowlevel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boards/guf-cupid/lowlevel.c b/arch/arm/boards/guf-cupid/lowlevel.c
index d5298c1..3264a26 100644
--- a/arch/arm/boards/guf-cupid/lowlevel.c
+++ b/arch/arm/boards/guf-cupid/lowlevel.c
@@ -45,7 +45,7 @@
 static void __bare_init noinline setup_sdram(u32 memsize, u32 mode, u32 sdram_addr)
 {
 	volatile int loop;
-	void *r9 = (void *)MX35_CSD0_BASE_ADDR;
+	void __iomem *r9 = IOMEM(MX35_CSD0_BASE_ADDR);
 	u32 r11 = 0xda; /* dummy constant */
 	u32 r1, r0;
 
-- 
1.8.3.2




More information about the barebox mailing list