Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4202e219 authored by Chuhong Yuan's avatar Chuhong Yuan Committed by David S. Miller
Browse files

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: default avatarChuhong Yuan <hslester96@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 623d0c2d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;
}