OSDN Git Service

phy: stih41x-usb: Fixup stih41x_usb_phy_power_on failure path
authorAxel Lin <axel.lin@ingics.com>
Tue, 17 Mar 2015 00:39:01 +0000 (08:39 +0800)
committerKishon Vijay Abraham I <kishon@ti.com>
Wed, 25 Mar 2015 23:36:09 +0000 (05:06 +0530)
commit080de5ba390c54b7504c43b36ae21911acf66b30
tree65ae710b35ff71025efe3738119b3f9ff108fb5c
parent739ae3452d0ee199b3cfe5e52214d9ccd8e358ea
phy: stih41x-usb: Fixup stih41x_usb_phy_power_on failure path

If stih41x_usb_phy_power_on() fails, we need to call clk_disable_unprepare()
before return error. This is to ensure we have balanced clk_enable/disable
calls.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/phy-stih41x-usb.c