summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx3
diff options
context:
space:
mode:
authorLuotao Fu <l.fu@pengutronix.de>2008-09-09 10:19:43 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2008-09-09 12:13:53 +0200
commitdefa8c309d280915a2e7f4451f70bcbb087088a3 (patch)
treee7c6e63db7a8e4816f5b91289aaf9741033e60e8 /arch/arm/mach-mx3
parent8b0171fad1db5c9a5b315f4a11e65da45fbd6f21 (diff)
downloadlinux-defa8c309d280915a2e7f4451f70bcbb087088a3.tar.gz
linux-defa8c309d280915a2e7f4451f70bcbb087088a3.tar.bz2
linux-defa8c309d280915a2e7f4451f70bcbb087088a3.zip
i.MX3: Fix compiler warnings
Fix some base address declaration by adding a cast. Signed-off-by: Luotao Fu <l.fu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx3')
-rw-r--r--arch/arm/mach-mx3/iomux.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/mach-mx3/iomux.c b/arch/arm/mach-mx3/iomux.c
index 3dda1fe23cbf..6e664be8cc13 100644
--- a/arch/arm/mach-mx3/iomux.c
+++ b/arch/arm/mach-mx3/iomux.c
@@ -43,7 +43,8 @@ static DEFINE_SPINLOCK(gpio_mux_lock);
*/
int mxc_iomux_mode(unsigned int pin_mode)
{
- u32 reg, field, l, mode, ret = 0;
+ u32 field, l, mode, ret = 0;
+ void __iomem *reg;
reg = IOMUXSW_MUX_CTL + (pin_mode & IOMUX_REG_MASK);
field = pin_mode & 0x3;
@@ -70,7 +71,8 @@ EXPORT_SYMBOL(mxc_iomux_mode);
*/
void mxc_iomux_set_pad(enum iomux_pins pin, u32 config)
{
- u32 reg, field, l;
+ u32 field, l;
+ void __iomem *reg;
reg = IOMUXSW_PAD_CTL + (pin + 2) / 3;
field = (pin + 2) % 3;