diff options
author | Arnd Bergmann <arnd@arndb.de> | 2012-09-14 16:21:01 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2012-09-19 09:19:15 -0400 |
commit | c8d9aab065c530db5c38e78eec7e164962f5cb23 (patch) | |
tree | e3fffeb14bb73d11608407bcb5e4f1e841a86cba /arch/arm/mach-nomadik/include/mach | |
parent | a1b478e829cb3e80021b5e2839d90275310d9eae (diff) |
ARM: nomadik: use __iomem pointers for MMIO
ARM is moving to stricter checks on readl/write functions,
so we need to use the correct types everywhere.
Acked-by: Alessandro Rubini <rubini@unipv.it>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Cc: STEricsson <STEricsson_nomadik_linux@list.st.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-nomadik/include/mach')
-rw-r--r-- | arch/arm/mach-nomadik/include/mach/hardware.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-nomadik/include/mach/uncompress.h | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/mach-nomadik/include/mach/hardware.h b/arch/arm/mach-nomadik/include/mach/hardware.h index 6316dba3bfc8..02035e459f50 100644 --- a/arch/arm/mach-nomadik/include/mach/hardware.h +++ b/arch/arm/mach-nomadik/include/mach/hardware.h | |||
@@ -30,7 +30,7 @@ | |||
30 | - NOMADIK_IO_VIRTUAL + NOMADIK_IO_PHYSICAL) | 30 | - NOMADIK_IO_VIRTUAL + NOMADIK_IO_PHYSICAL) |
31 | 31 | ||
32 | /* used in asm code, so no casts */ | 32 | /* used in asm code, so no casts */ |
33 | #define IO_ADDRESS(x) ((x) - NOMADIK_IO_PHYSICAL + NOMADIK_IO_VIRTUAL) | 33 | #define IO_ADDRESS(x) IOMEM((x) - NOMADIK_IO_PHYSICAL + NOMADIK_IO_VIRTUAL) |
34 | 34 | ||
35 | /* | 35 | /* |
36 | * Base address defination for Nomadik Onchip Logic Block | 36 | * Base address defination for Nomadik Onchip Logic Block |
diff --git a/arch/arm/mach-nomadik/include/mach/uncompress.h b/arch/arm/mach-nomadik/include/mach/uncompress.h index 071003bc8456..7d4687e9cbdf 100644 --- a/arch/arm/mach-nomadik/include/mach/uncompress.h +++ b/arch/arm/mach-nomadik/include/mach/uncompress.h | |||
@@ -27,10 +27,10 @@ | |||
27 | struct amba_device; | 27 | struct amba_device; |
28 | #include <linux/amba/serial.h> | 28 | #include <linux/amba/serial.h> |
29 | 29 | ||
30 | #define NOMADIK_UART_DR 0x101FB000 | 30 | #define NOMADIK_UART_DR (void __iomem *)0x101FB000 |
31 | #define NOMADIK_UART_LCRH 0x101FB02c | 31 | #define NOMADIK_UART_LCRH (void __iomem *)0x101FB02c |
32 | #define NOMADIK_UART_CR 0x101FB030 | 32 | #define NOMADIK_UART_CR (void __iomem *)0x101FB030 |
33 | #define NOMADIK_UART_FR 0x101FB018 | 33 | #define NOMADIK_UART_FR (void __iomem *)0x101FB018 |
34 | 34 | ||
35 | static void putc(const char c) | 35 | static void putc(const char c) |
36 | { | 36 | { |