提交 03b562d7 编写于 作者: T Todd Poynor 提交者: Tony Lindgren

ARM: OMAP2: Add missing iounmap in omap4430_phy_init

!dev case needs iounmap before return.
Signed-off-by: NTodd Poynor <toddpoynor@google.com>
Signed-off-by: NTony Lindgren <tony@atomide.com>
上级 21a42c92
......@@ -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)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册