]> git.baikalelectronics.ru Git - kernel.git/commit
phy: rockchip-usb: Fixup rockchip_usb_phy_power_on failure path
authorAxel Lin <axel.lin@ingics.com>
Wed, 4 Mar 2015 01:33:32 +0000 (09:33 +0800)
committerKishon Vijay Abraham I <kishon@ti.com>
Thu, 12 Mar 2015 05:31:17 +0000 (11:01 +0530)
commit914de07573d19e1449eb4cd6cf4d698ee613a3bc
tree9100d38a29c9d9f7e4135ed533ed15a54717f191
parent98110395039c4a62662e5d2b3fb009db3710a745
phy: rockchip-usb: Fixup rockchip_usb_phy_power_on failure path

If rockchip_usb_phy_power() fails, we need to call clk_disable_unprepare()
before return. This is to ensure we have balanced clk_enable/disable calls.
Also remove unneeded ret checking in rockchip_usb_phy_power_off.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/phy-rockchip-usb.c