diff options
author | Dmitry Voytik <voytikd@gmail.com> | 2014-11-06 21:55:04 +0300 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2014-11-22 02:39:36 +0300 |
commit | c3008735fce9f9a0f92fd79d4e1f3969d6f33c9f (patch) | |
tree | 54a7771717223271c1ff282131be1098fd3fe553 /arch/arm/mach-imx/iomux-imx31.c | |
parent | c400f7a26fa0fa8ea7268cef27f1ba980df54267 (diff) | |
download | linux-c3008735fce9f9a0f92fd79d4e1f3969d6f33c9f.tar.xz |
ARM: imx: refactor mxc_iomux_mode()
Refactor mxc_iomux_mode():
- since it always returns 0 make it to return void
- remove unnecessary ret variable
- declare variables according to the kernel coding style
Signed-off-by: Dmitry Voytik <voytikd@gmail.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'arch/arm/mach-imx/iomux-imx31.c')
-rw-r--r-- | arch/arm/mach-imx/iomux-imx31.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mach-imx/iomux-imx31.c b/arch/arm/mach-imx/iomux-imx31.c index 1657fe64cd0f..d6a30753ca7c 100644 --- a/arch/arm/mach-imx/iomux-imx31.c +++ b/arch/arm/mach-imx/iomux-imx31.c @@ -44,9 +44,11 @@ static unsigned long mxc_pin_alloc_map[NB_PORTS * 32 / BITS_PER_LONG]; /* * set the mode for a IOMUX pin. */ -int mxc_iomux_mode(unsigned int pin_mode) +void mxc_iomux_mode(unsigned int pin_mode) { - u32 field, l, mode, ret = 0; + u32 field; + u32 l; + u32 mode; void __iomem *reg; reg = IOMUXSW_MUX_CTL + (pin_mode & IOMUX_REG_MASK); @@ -61,8 +63,6 @@ int mxc_iomux_mode(unsigned int pin_mode) __raw_writel(l, reg); spin_unlock(&gpio_mux_lock); - - return ret; } /* |