forked from luck/tmp_suning_uos_patched
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>
This commit is contained in:
parent
21a42c9275
commit
03b562d785
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user