diff options
author | Chuhong Yuan <hslester96@gmail.com> | 2019-11-01 13:17:25 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-11-01 18:25:39 +0100 |
commit | 4202e219edd6cc164c042e16fa327525410705ae (patch) | |
tree | 86a017e1ef847781e94cc48dd209b97908d1e595 /drivers/net/ethernet/arc | |
parent | tcp: increase tcp_max_syn_backlog max value (diff) | |
download | linux-4202e219edd6cc164c042e16fa327525410705ae.tar.xz linux-4202e219edd6cc164c042e16fa327525410705ae.zip |
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; } |