Skip to content

Commit

Permalink
net: ethernet: arc: add the missed clk_disable_unprepare
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
WillLester authored and davem330 committed Nov 1, 2019
1 parent 623d0c2 commit 4202e21
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/ethernet/arc/emac_rockchip.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4202e21

Please sign in to comment.