Skip to content

Commit

Permalink
phy: ti: omap-usb2: Fix error handling in omap_usb2_enable_clocks
Browse files Browse the repository at this point in the history
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 <linmq006@gmail.com>
Link: https://lore.kernel.org/r/20220318105748.19532-1-linmq006@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
  • Loading branch information
Miaoqian Lin authored and Vinod Koul committed Apr 13, 2022
1 parent a9f17d0 commit 3588060
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/phy/ti/phy-omap-usb2.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ static int omap_usb2_enable_clocks(struct omap_usb *phy)
return 0;

err1:
clk_disable(phy->wkupclk);
clk_disable_unprepare(phy->wkupclk);

err0:
return ret;
Expand Down

0 comments on commit 3588060

Please sign in to comment.