diff options
author | Todd Poynor <toddpoynor@google.com> | 2011-05-26 12:25:53 -0700 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2011-06-01 02:25:04 -0700 |
commit | 03b562d7859c6d7c640f071b422d521146471d6d (patch) | |
tree | 0117319ba7b8fa79b9e60240cbab2567f0992358 /arch | |
parent | 21a42c92750446008dc0847a78aba5459e3b6b5a (diff) |
ARM: OMAP2: Add missing iounmap in omap4430_phy_init
!dev case needs iounmap before return.
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-omap2/omap_phy_internal.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/omap_phy_internal.c b/arch/arm/mach-omap2/omap_phy_internal.c index f47813edd95..58775e3c847 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)) { |