mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
net: ethernet: arc: add the missed clk_disable_unprepare
[ Upstream commit 4202e219ed ]
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
7fe8d1529b
commit
0e63ae78bc
@@ -261,6 +261,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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user