Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dbce8fc1 authored by Miaoqian Lin's avatar Miaoqian Lin Committed by Greg Kroah-Hartman
Browse files

phy: ti: omap-usb2: Fix error handling in omap_usb2_enable_clocks



[ Upstream commit 3588060befff75ff39fab7122b94c6fb3148fcda ]

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: ed31ee7c ("phy: ti: usb2: Fix logic on -EPROBE_DEFER")
Signed-off-by: default avatarMiaoqian Lin <linmq006@gmail.com>
Link: https://lore.kernel.org/r/20220318105748.19532-1-linmq006@gmail.com


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent b7fc4535
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -157,7 +157,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;