summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/arc
diff options
context:
space:
mode:
authorChuhong Yuan <hslester96@gmail.com>2019-11-01 15:17:25 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-11-12 21:21:17 +0300
commit1baab8352d80e7ac2b2d2785b7962c6af10c633c (patch)
tree1041784dee67d49895952230a4db525a16524eae /drivers/net/ethernet/arc
parent24523745ed41373c7d62b1556525623e5b0c5c6a (diff)
downloadlinux-1baab8352d80e7ac2b2d2785b7962c6af10c633c.tar.xz
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 <hslester96@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/arc')
-rw-r--r--drivers/net/ethernet/arc/emac_rockchip.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/arc/emac_rockchip.c b/drivers/net/ethernet/arc/emac_rockchip.c
index 0f6576802607..a1df2ebab07f 100644
--- a/drivers/net/ethernet/arc/emac_rockchip.c
+++ b/drivers/net/ethernet/arc/emac_rockchip.c
@@ -265,6 +265,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;
}