Commit 29c2d02a authored by Kishon Vijay Abraham I's avatar Kishon Vijay Abraham I Committed by Vinod Koul

phy: cadence: Sierra: Add missing clk_disable_unprepare() in .remove callback

commit 44d30d62 ("phy: cadence: Add driver for Sierra PHY") enabled
the clock in probe and failed to disable in remove callback. Add missing
clk_disable_unprepare() in cdns_sierra_phy_remove().

Fixes: 44d30d62 ("phy: cadence: Add driver for Sierra PHY")
Signed-off-by: default avatarKishon Vijay Abraham I <kishon@ti.com>
Link: https://lore.kernel.org/r/20210319124128.13308-11-kishon@ti.comSigned-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent a0c30cd7
...@@ -689,6 +689,9 @@ static int cdns_sierra_phy_remove(struct platform_device *pdev) ...@@ -689,6 +689,9 @@ static int cdns_sierra_phy_remove(struct platform_device *pdev)
reset_control_assert(phy->phys[i].lnk_rst); reset_control_assert(phy->phys[i].lnk_rst);
reset_control_put(phy->phys[i].lnk_rst); reset_control_put(phy->phys[i].lnk_rst);
} }
clk_disable_unprepare(phy->input_clks[PHY_CLK]);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment