phy: cadence: sierra: add missed clk_disable_unprepare in remove
PATCH 1/1 phy: cadence: sierra: add missed clk_disable_unprepare in remove
The driver forgets to disable and unprepare clk when remove. Add a call to clk_disable_unprepare to fix it.
Signed-off-by Chuhong Yuan <[email protected]>
--- drivers/phy/cadence/phy-cadence-sierra.c | 1 + 1 file changed, 1 insertion(+)
drivers/phy/cadence/phy-cadence-sierra.c +1 -0
@@ -291,6 +291,7 @@ static int cdns_sierra_phy_remove(struct platform_device *pdev)struct cdns_sierra_phy *phy =dev_get_drvdata (pdev->dev.parent);int i; +clk_disable_unprepare (phy->clk);reset_control_assert (phy->phy_rst);reset_control_assert (phy->apb_rst);pm_runtime_disable (&pdev->dev);
Signature · 1 line
2.23.0