summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKishon Vijay Abraham I <kishon@ti.com>2022-01-28 11:11:34 +0300
committerTom Rini <trini@konsulko.com>2022-02-08 19:00:03 +0300
commite7a2986ec761719370674e9c96262ce6beaf56fe (patch)
treeac3c86c84d3bc2483c8f6c9cf9500b4cea83a5d0
parent8257437d0f21c6edda161844052c0e05579af71b (diff)
downloadu-boot-e7a2986ec761719370674e9c96262ce6beaf56fe.tar.xz
phy: cadence: Sierra: Add missing clk_disable_unprepare() in .remove callback
Add missing clk_disable_unprepare() in cdns_sierra_phy_remove(). Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>
-rw-r--r--drivers/phy/cadence/phy-cadence-sierra.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/phy/cadence/phy-cadence-sierra.c b/drivers/phy/cadence/phy-cadence-sierra.c
index 0bc60bb73e..90699f2fa6 100644
--- a/drivers/phy/cadence/phy-cadence-sierra.c
+++ b/drivers/phy/cadence/phy-cadence-sierra.c
@@ -617,6 +617,8 @@ static int cdns_sierra_phy_remove(struct udevice *dev)
for (i = 0; i < phy->nsubnodes; i++)
reset_assert_bulk(phy->phys[i].lnk_rst);
+ clk_disable_unprepare(phy->input_clks[PHY_CLK]);
+
return 0;
}