diff options
author | Olof Johansson <olof@lixom.net> | 2012-01-27 08:15:11 +0100 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2012-01-27 08:15:11 +0100 |
commit | 5e9638643132795e6168bb483e883b6a9678e7b5 (patch) | |
tree | b167a5233d24ba35330d97717c95d77019646805 /arch | |
parent | Merge branch 'fixes-for-arm-soc' of git://git.kernel.org/pub/scm/linux/kernel... (diff) | |
parent | arch/arm/mach-imx/mach-mx53_ard.c: add missing iounmap (diff) | |
download | linux-5e9638643132795e6168bb483e883b6a9678e7b5.tar.xz linux-5e9638643132795e6168bb483e883b6a9678e7b5.zip |
Merge branch 'imx-fixes' of git://git.pengutronix.de/git/imx/linux-2.6 into fixes
* 'imx-fixes' of git://git.pengutronix.de/git/imx/linux-2.6:
arch/arm/mach-imx/mach-mx53_ard.c: add missing iounmap
ARM: imx: iomux-v1.h: Fix build error due to __init annotation
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-mx5/board-mx53_ard.c | 4 | ||||
-rw-r--r-- | arch/arm/plat-mxc/include/mach/iomux-v1.h | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/mach-mx5/board-mx53_ard.c b/arch/arm/mach-mx5/board-mx53_ard.c index 5f224f1c3eb6..d4aac813cca8 100644 --- a/arch/arm/mach-mx5/board-mx53_ard.c +++ b/arch/arm/mach-mx5/board-mx53_ard.c @@ -189,8 +189,10 @@ static int weim_cs_config(void) return -ENOMEM; iomuxc_base = ioremap(MX53_IOMUXC_BASE_ADDR, SZ_4K); - if (!iomuxc_base) + if (!iomuxc_base) { + iounmap(weim_base); return -ENOMEM; + } /* CS1 timings for LAN9220 */ writel(0x20001, (weim_base + 0x18)); diff --git a/arch/arm/plat-mxc/include/mach/iomux-v1.h b/arch/arm/plat-mxc/include/mach/iomux-v1.h index 6fa8a707b9a0..f7d18046c04f 100644 --- a/arch/arm/plat-mxc/include/mach/iomux-v1.h +++ b/arch/arm/plat-mxc/include/mach/iomux-v1.h @@ -96,6 +96,6 @@ extern int mxc_gpio_mode(int gpio_mode); extern int mxc_gpio_setup_multiple_pins(const int *pin_list, unsigned count, const char *label); -extern int __init imx_iomuxv1_init(void __iomem *base, int numports); +extern int imx_iomuxv1_init(void __iomem *base, int numports); #endif /* __MACH_IOMUX_V1_H__ */ |