[PATCH] phy: rockchip-usb: Fixup rockchip_usb_phy_power_on failure path

2015-03-03 Thread Axel Lin
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 --- drivers/phy/phy-rockchip-usb.c | 6 +++--- 1 file

[PATCH] phy: rockchip-usb: Fixup rockchip_usb_phy_power_on failure path

2015-03-03 Thread Axel Lin
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@ingics.com --- drivers/phy/phy-rockchip-usb.c |