From: Chuhong Yuan Date: Fri, 1 Nov 2019 12:17:25 +0000 (+0800) Subject: net: ethernet: arc: add the missed clk_disable_unprepare X-Git-Tag: v4.9.201~37 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0e63ae78bcc78220fe282cfed99bee14711be3be;p=platform%2Fkernel%2Flinux-amlogic.git net: ethernet: arc: add the missed clk_disable_unprepare [ Upstream commit 4202e219edd6cc164c042e16fa327525410705ae ] The remove misses to disable and unprepare priv->macclk like what is done when probe fails. Add the missed call in remove. Signed-off-by: Chuhong Yuan Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- diff --git a/drivers/net/ethernet/arc/emac_rockchip.c b/drivers/net/ethernet/arc/emac_rockchip.c index c770ca37c9b2..a7d30731d376 100644 --- a/drivers/net/ethernet/arc/emac_rockchip.c +++ b/drivers/net/ethernet/arc/emac_rockchip.c @@ -261,6 +261,9 @@ static int emac_rockchip_remove(struct platform_device *pdev) if (priv->regulator) regulator_disable(priv->regulator); + if (priv->soc_data->need_div_macclk) + clk_disable_unprepare(priv->macclk); + free_netdev(ndev); return err; }