Skip to content

Commit

Permalink
phy: cadence: Sierra: Add missing clk_disable_unprepare() in .remove …
Browse files Browse the repository at this point in the history
…callback

commit 44d30d6 ("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: 44d30d6 ("phy: cadence: Add driver for Sierra PHY")
Signed-off-by: Kishon Vijay Abraham I <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
  • Loading branch information
kishon authored and vinodkoul committed Mar 31, 2021
1 parent a0c30cd commit 29c2d02
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/phy/cadence/phy-cadence-sierra.c
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,9 @@ static int cdns_sierra_phy_remove(struct platform_device *pdev)
reset_control_assert(phy->phys[i].lnk_rst);
reset_control_put(phy->phys[i].lnk_rst);
}

clk_disable_unprepare(phy->input_clks[PHY_CLK]);

return 0;
}

Expand Down

0 comments on commit 29c2d02

Please sign in to comment.