Skip to content

Commit

Permalink
ARM: OMAP2: Add missing iounmap in omap4430_phy_init
Browse files Browse the repository at this point in the history
!dev case needs iounmap before return.

Signed-off-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
  • Loading branch information
Todd Poynor authored and Tony Lindgren committed Jun 1, 2011
1 parent 21a42c9 commit 03b562d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arch/arm/mach-omap2/omap_phy_internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 03b562d

Please sign in to comment.