aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2014-02-26 21:16:33 -0500
committerOlof Johansson <olof@lixom.net>2014-05-27 14:42:59 -0400
commit96919d44af41403dce9f5372b9f13a175ba09de7 (patch)
treeb7f9bad8bc62c1c5c2f6fa9094d2bad4e86eee2d
parent04b19d48e2a3284c26d417a09e27fabbb97f3407 (diff)
ARM: msm: Silence readb/writeb warnings due to missing IOMEM()
TROUT_CPLD_BASE needs the IOMEM() treatment to avoid warnings from the read/writeb functions. Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Olof Johansson <olof@lixom.net>
-rw-r--r--arch/arm/mach-msm/board-trout-gpio.c2
-rw-r--r--arch/arm/mach-msm/board-trout.c2
-rw-r--r--arch/arm/mach-msm/board-trout.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-msm/board-trout-gpio.c b/arch/arm/mach-msm/board-trout-gpio.c
index 87e1d01edecc..2c25050209ce 100644
--- a/arch/arm/mach-msm/board-trout-gpio.c
+++ b/arch/arm/mach-msm/board-trout-gpio.c
@@ -89,7 +89,7 @@ static int trout_gpio_to_irq(struct gpio_chip *chip, unsigned offset)
89 .base = base_gpio, \ 89 .base = base_gpio, \
90 .ngpio = 8, \ 90 .ngpio = 8, \
91 }, \ 91 }, \
92 .reg = (void *) reg_num + TROUT_CPLD_BASE, \ 92 .reg = reg_num + TROUT_CPLD_BASE, \
93 .shadow = shadow_val, \ 93 .shadow = shadow_val, \
94 } 94 }
95 95
diff --git a/arch/arm/mach-msm/board-trout.c b/arch/arm/mach-msm/board-trout.c
index 015d544aa017..5edfbd904d06 100644
--- a/arch/arm/mach-msm/board-trout.c
+++ b/arch/arm/mach-msm/board-trout.c
@@ -78,7 +78,7 @@ static void __init trout_init(void)
78 78
79static struct map_desc trout_io_desc[] __initdata = { 79static struct map_desc trout_io_desc[] __initdata = {
80 { 80 {
81 .virtual = TROUT_CPLD_BASE, 81 .virtual = (unsigned long)TROUT_CPLD_BASE,
82 .pfn = __phys_to_pfn(TROUT_CPLD_START), 82 .pfn = __phys_to_pfn(TROUT_CPLD_START),
83 .length = TROUT_CPLD_SIZE, 83 .length = TROUT_CPLD_SIZE,
84 .type = MT_DEVICE_NONSHARED 84 .type = MT_DEVICE_NONSHARED
diff --git a/arch/arm/mach-msm/board-trout.h b/arch/arm/mach-msm/board-trout.h
index b2379ede43bc..adb757abbb92 100644
--- a/arch/arm/mach-msm/board-trout.h
+++ b/arch/arm/mach-msm/board-trout.h
@@ -58,7 +58,7 @@
58#define TROUT_4_TP_LS_EN 19 58#define TROUT_4_TP_LS_EN 19
59#define TROUT_5_TP_LS_EN 1 59#define TROUT_5_TP_LS_EN 1
60 60
61#define TROUT_CPLD_BASE 0xE8100000 61#define TROUT_CPLD_BASE IOMEM(0xE8100000)
62#define TROUT_CPLD_START 0x98000000 62#define TROUT_CPLD_START 0x98000000
63#define TROUT_CPLD_SIZE SZ_4K 63#define TROUT_CPLD_SIZE SZ_4K
64 64