Skip to content

Commit

Permalink
ARM: msm: Silence readb/writeb warnings due to missing IOMEM()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stephen Boyd authored and Olof Johansson committed May 27, 2014
1 parent 04b19d4 commit 96919d4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion arch/arm/mach-msm/board-trout-gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ static int trout_gpio_to_irq(struct gpio_chip *chip, unsigned offset)
.base = base_gpio, \
.ngpio = 8, \
}, \
.reg = (void *) reg_num + TROUT_CPLD_BASE, \
.reg = reg_num + TROUT_CPLD_BASE, \
.shadow = shadow_val, \
}

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-msm/board-trout.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ static void __init trout_init(void)

static struct map_desc trout_io_desc[] __initdata = {
{
.virtual = TROUT_CPLD_BASE,
.virtual = (unsigned long)TROUT_CPLD_BASE,
.pfn = __phys_to_pfn(TROUT_CPLD_START),
.length = TROUT_CPLD_SIZE,
.type = MT_DEVICE_NONSHARED
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-msm/board-trout.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
#define TROUT_4_TP_LS_EN 19
#define TROUT_5_TP_LS_EN 1

#define TROUT_CPLD_BASE 0xE8100000
#define TROUT_CPLD_BASE IOMEM(0xE8100000)
#define TROUT_CPLD_START 0x98000000
#define TROUT_CPLD_SIZE SZ_4K

Expand Down

0 comments on commit 96919d4

Please sign in to comment.