X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=arch%2Farm%2Fmach-omap2%2Fboard-3430sdp.c;h=416d2887ad73082019a7431dea81c13087794d9c;hb=ad264679a1d13d5180aa19753708d8e588fee949;hp=56f28ae94d6f8e0b61ed55b1a5b9af214c42867e;hpb=0134605bdb94db314128f37563fd475e68634dd3;p=linux-2.6-omap-h63xx.git diff --git a/arch/arm/mach-omap2/board-3430sdp.c b/arch/arm/mach-omap2/board-3430sdp.c index 56f28ae94d6..416d2887ad7 100644 --- a/arch/arm/mach-omap2/board-3430sdp.c +++ b/arch/arm/mach-omap2/board-3430sdp.c @@ -128,7 +128,8 @@ static int __init msecure_init(void) /* 3430ES2.0 doesn't have msecure/gpio-22 line connected to T2 */ if (omap_type() == OMAP2_DEVICE_TYPE_GP && system_rev < OMAP3430_REV_ES2_0) { - u32 msecure_pad_config_reg = omap_ctrl_base_get() + 0xA3C; + void __iomem *msecure_pad_config_reg = omap_ctrl_base_get() + + 0xA3C; int mux_mask = 0x04; u16 tmp; @@ -143,10 +144,10 @@ static int __init msecure_init(void) * is low. Make msecure line high in order to change the * TWL4030 RTC time and calender registers. */ - tmp = omap_readw(msecure_pad_config_reg); + tmp = __raw_readw(msecure_pad_config_reg); tmp &= 0xF8; /* To enable mux mode 03/04 = GPIO_RTC */ tmp |= mux_mask;/* To enable mux mode 03/04 = GPIO_RTC */ - omap_writew(tmp, msecure_pad_config_reg); + __raw_writew(tmp, msecure_pad_config_reg); gpio_direction_output(TWL4030_MSECURE_GPIO, 1); }