]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
phy: cadence: Sierra: Add missing clk_disable_unprepare() in .remove callback
authorKishon Vijay Abraham I <kishon@ti.com>
Fri, 28 Jan 2022 08:11:34 +0000 (13:41 +0530)
committerTom Rini <trini@konsulko.com>
Tue, 8 Feb 2022 16:00:03 +0000 (11:00 -0500)
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>
drivers/phy/cadence/phy-cadence-sierra.c

index 0bc60bb73e88c9ee5934e2f4bc09f0c14e8a2e23..90699f2fa653a3b61018169a49122acf0bfd1e47 100644 (file)
@@ -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;
 }