diff options
author | Chuhong Yuan <hslester96@gmail.com> | 2019-11-01 15:17:25 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-11-01 20:25:39 +0300 |
commit | 4202e219edd6cc164c042e16fa327525410705ae (patch) | |
tree | 86a017e1ef847781e94cc48dd209b97908d1e595 /drivers/net/ethernet/arc | |
parent | 623d0c2db02043e43b698fdd8de1bd398b8e7b37 (diff) | |
download | linux-4202e219edd6cc164c042e16fa327525410705ae.tar.xz |
net: ethernet: arc: add the missed clk_disable_unprepare
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>
Diffstat (limited to 'drivers/net/ethernet/arc')
-rw-r--r-- | drivers/net/ethernet/arc/emac_rockchip.c | 3 |
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 42d2e1b02c44..664d664e0925 100644 --- a/drivers/net/ethernet/arc/emac_rockchip.c +++ b/drivers/net/ethernet/arc/emac_rockchip.c @@ -256,6 +256,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; } |