projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
623d0c2
)
net: ethernet: arc: add the missed clk_disable_unprepare
author
Chuhong Yuan
<hslester96@gmail.com>
Fri, 1 Nov 2019 12:17:25 +0000
(20:17 +0800)
committer
David S. Miller
<davem@davemloft.net>
Fri, 1 Nov 2019 17:25:39 +0000
(10:25 -0700)
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>
drivers/net/ethernet/arc/emac_rockchip.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/arc/emac_rockchip.c
b/drivers/net/ethernet/arc/emac_rockchip.c
index
42d2e1b
..
664d664
100644
(file)
--- 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;
}