Skip to content

Commit

Permalink
Merge branch 'imx-fixes' of git://git.pengutronix.de/git/imx/linux-2.…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
olofj committed Jan 27, 2012
2 parents d8c4cd7 + 945f82f commit 5e96386
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion arch/arm/mach-mx5/board-mx53_ard.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/plat-mxc/include/mach/iomux-v1.h
Original file line number Diff line number Diff line change
Expand Up @@ -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__ */

0 comments on commit 5e96386

Please sign in to comment.