diff options
author | Arnd Bergmann <arnd@arndb.de> | 2012-09-14 20:20:02 +0000 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2012-09-19 15:19:13 +0200 |
commit | c72ecbec1999204be15e40ade63585b16a6f713a (patch) | |
tree | 6aab28ea0eaa15d7b8a9ee372d99aa1b029001dc /arch/arm/mach-ks8695/include/mach/uncompress.h | |
parent | 13ec32f47cb42cecc9cd262c307ef9377c601007 (diff) | |
download | op-kernel-dev-c72ecbec1999204be15e40ade63585b16a6f713a.zip op-kernel-dev-c72ecbec1999204be15e40ade63585b16a6f713a.tar.gz |
ARM: ks8695: use __iomem pointers for MMIO
ARM is moving to stricter checks on readl/write functions,
so we need to use the correct types everywhere.
Cc: Krzysztof Halasa <khc@pm.waw.pl>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-ks8695/include/mach/uncompress.h')
-rw-r--r-- | arch/arm/mach-ks8695/include/mach/uncompress.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-ks8695/include/mach/uncompress.h b/arch/arm/mach-ks8695/include/mach/uncompress.h index 9495cb4..8879d61 100644 --- a/arch/arm/mach-ks8695/include/mach/uncompress.h +++ b/arch/arm/mach-ks8695/include/mach/uncompress.h @@ -19,15 +19,15 @@ static void putc(char c) { - while (!(__raw_readl(KS8695_UART_PA + KS8695_URLS) & URLS_URTHRE)) + while (!(__raw_readl((void __iomem*)KS8695_UART_PA + KS8695_URLS) & URLS_URTHRE)) barrier(); - __raw_writel(c, KS8695_UART_PA + KS8695_URTH); + __raw_writel(c, (void __iomem*)KS8695_UART_PA + KS8695_URTH); } static inline void flush(void) { - while (!(__raw_readl(KS8695_UART_PA + KS8695_URLS) & URLS_URTE)) + while (!(__raw_readl((void __iomem*)KS8695_UART_PA + KS8695_URLS) & URLS_URTE)) barrier(); } |