summaryrefslogtreecommitdiff
path: root/arch/arm/mach-omap2
diff options
context:
space:
mode:
authorTodd Poynor <toddpoynor@google.com>2011-05-26 19:25:53 (GMT)
committerTony Lindgren <tony@atomide.com>2011-06-01 09:25:04 (GMT)
commit03b562d7859c6d7c640f071b422d521146471d6d (patch)
tree0117319ba7b8fa79b9e60240cbab2567f0992358 /arch/arm/mach-omap2
parent21a42c92750446008dc0847a78aba5459e3b6b5a (diff)
downloadlinux-03b562d7859c6d7c640f071b422d521146471d6d.tar.xz
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/arm/mach-omap2')
-rw-r--r--arch/arm/mach-omap2/omap_phy_internal.c4
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 f47813e..58775e3 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)) {