Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c43eab3e authored by Chuhong Yuan's avatar Chuhong Yuan Committed by David S. Miller
Browse files

net: fec: add missed clk_disable_unprepare in remove



This driver forgets to disable and unprepare clks when remove.
Add calls to clk_disable_unprepare to fix it.

Signed-off-by: default avatarChuhong Yuan <hslester96@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1204c70d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3645,6 +3645,8 @@ fec_drv_remove(struct platform_device *pdev)
		regulator_disable(fep->reg_phy);
	pm_runtime_put(&pdev->dev);
	pm_runtime_disable(&pdev->dev);
	clk_disable_unprepare(fep->clk_ahb);
	clk_disable_unprepare(fep->clk_ipg);
	if (of_phy_is_fixed_link(np))
		of_phy_deregister_fixed_link(np);
	of_node_put(fep->phy_node);