All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] net: fec: add missed clk_disable_unprepare in remove
@ 2019-11-04 15:50 Chuhong Yuan
  2019-11-04 19:36 ` David Miller
  2019-11-05  1:26 ` [EXT] " Andy Duan
  0 siblings, 2 replies; 8+ messages in thread
From: Chuhong Yuan @ 2019-11-04 15:50 UTC (permalink / raw)
  Cc: Fugang Duan, David S . Miller, netdev, linux-kernel, Chuhong Yuan

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

Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
---
 drivers/net/ethernet/freescale/fec_main.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c
index 22c01b224baa..a9c386b63581 100644
--- a/drivers/net/ethernet/freescale/fec_main.c
+++ b/drivers/net/ethernet/freescale/fec_main.c
@@ -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);
-- 
2.23.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-11-05 16:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-04 15:50 [PATCH] net: fec: add missed clk_disable_unprepare in remove Chuhong Yuan
2019-11-04 19:36 ` David Miller
2019-11-05  1:27   ` [EXT] " Andy Duan
2019-11-05  1:32     ` David Miller
2019-11-05  1:40       ` Andy Duan
2019-11-05  1:26 ` [EXT] " Andy Duan
2019-11-05 15:34   ` Chuhong Yuan
2019-11-05 16:46     ` Andy Duan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.