From 03b562d7859c6d7c640f071b422d521146471d6d Mon Sep 17 00:00:00 2001 From: Todd Poynor Date: Thu, 26 May 2011 12:25:53 -0700 Subject: [PATCH] ARM: OMAP2: Add missing iounmap in omap4430_phy_init !dev case needs iounmap before return. Signed-off-by: Todd Poynor Signed-off-by: Tony Lindgren --- arch/arm/mach-omap2/omap_phy_internal.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/omap_phy_internal.c b/arch/arm/mach-omap2/omap_phy_internal.c index f47813edd951..58775e3c8476 100644 --- a/arch/arm/mach-omap2/omap_phy_internal.c +++ b/arch/arm/mach-omap2/omap_phy_internal.c @@ -56,8 +56,10 @@ int omap4430_phy_init(struct device *dev) /* Power down the phy */ __raw_writel(PHY_PD, ctrl_base + CONTROL_DEV_CONF); - if (!dev) + if (!dev) { + iounmap(ctrl_base); return 0; + } phyclk = clk_get(dev, "ocp2scp_usb_phy_ick"); if (IS_ERR(phyclk)) { -- 2.39.5