Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 03b562d7 authored by Todd Poynor's avatar Todd Poynor Committed by Tony Lindgren
Browse files

ARM: OMAP2: Add missing iounmap in omap4430_phy_init



!dev case needs iounmap before return.

Signed-off-by: default avatarTodd Poynor <toddpoynor@google.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 21a42c92
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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)) {