Commit 49d394be authored by Arnd Bergmann's avatar Arnd Bergmann

ARM: prima2: 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: Barry Song <baohua.song@csr.com>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent c8d9aab0
...@@ -25,11 +25,11 @@ static __inline__ void putc(char c) ...@@ -25,11 +25,11 @@ static __inline__ void putc(char c)
* during kernel decompression, all mappings are flat: * during kernel decompression, all mappings are flat:
* virt_addr == phys_addr * virt_addr == phys_addr
*/ */
while (__raw_readl(SIRFSOC_UART1_PA_BASE + SIRFSOC_UART_TXFIFO_STATUS) while (__raw_readl((void __iomem *)SIRFSOC_UART1_PA_BASE + SIRFSOC_UART_TXFIFO_STATUS)
& SIRFSOC_UART1_TXFIFO_FULL) & SIRFSOC_UART1_TXFIFO_FULL)
barrier(); barrier();
__raw_writel(c, SIRFSOC_UART1_PA_BASE + SIRFSOC_UART_TXFIFO_DATA); __raw_writel(c, (void __iomem *)SIRFSOC_UART1_PA_BASE + SIRFSOC_UART_TXFIFO_DATA);
} }
static inline void flush(void) static inline void flush(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment