phy: ti: omap-usb2: Fix error handling in omap_usb2_enable_clocks
authorMiaoqian Lin <linmq006@gmail.com>
Fri, 18 Mar 2022 10:57:46 +0000 (10:57 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 May 2022 07:14:33 +0000 (09:14 +0200)
commit555bcbb7d0ffd30bea57c2244c059f37799a640a
treef5538511e7736c618373569847c21cc71a4f1100
parentd60abf246aa51722bc4d8ffd87564146bf962542
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: ed31ee7cf1fe ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/phy/ti/phy-omap-usb2.c