Skip to content

Commit 3588060

Browse files
Yuuoniyvinodkoul
authored andcommitted
phy: ti: omap-usb2: Fix error handling in omap_usb2_enable_clocks
The corresponding API for clk_prepare_enable is clk_disable_unprepare. Make sure that the clock is unprepared on exit by changing clk_disable to clk_disable_unprepare. Fixes: ed31ee7 ("phy: ti: usb2: Fix logic on -EPROBE_DEFER") Signed-off-by: Miaoqian Lin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent a9f17d0 commit 3588060

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/phy/ti/phy-omap-usb2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ static int omap_usb2_enable_clocks(struct omap_usb *phy)
215215
return 0;
216216

217217
err1:
218-
clk_disable(phy->wkupclk);
218+
clk_disable_unprepare(phy->wkupclk);
219219

220220
err0:
221221
return ret;

0 commit comments

Comments
 (0)