Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: samsung: 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: Kukjin Kim <kgene.kim@samsung.com>
Cc: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

+2 -2
+2 -2
arch/arm/plat-samsung/s5p-irq-gpioint.c
··· 24 24 25 25 #include <asm/mach/irq.h> 26 26 27 - #define GPIO_BASE(chip) (((unsigned long)(chip)->base) & 0xFFFFF000u) 27 + #define GPIO_BASE(chip) ((void __iomem *)((unsigned long)((chip)->base) & 0xFFFFF000u)) 28 28 29 29 #define CON_OFFSET 0x700 30 30 #define MASK_OFFSET 0x900 ··· 153 153 bank->chips[group - bank->start] = chip; 154 154 155 155 gc = irq_alloc_generic_chip("s5p_gpioint", 1, chip->irq_base, 156 - (void __iomem *)GPIO_BASE(chip), 156 + GPIO_BASE(chip), 157 157 handle_level_irq); 158 158 if (!gc) 159 159 return -ENOMEM;