projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net/faraday: Stop NCSI device on shutdown
[cascardo/linux.git]
/
drivers
/
net
/
ethernet
/
faraday
/
ftgmac100.c
diff --git
a/drivers/net/ethernet/faraday/ftgmac100.c
b/drivers/net/ethernet/faraday/ftgmac100.c
index
90f9c54
..
2625872
100644
(file)
--- a/
drivers/net/ethernet/faraday/ftgmac100.c
+++ b/
drivers/net/ethernet/faraday/ftgmac100.c
@@
-1190,6
+1190,8
@@
static int ftgmac100_stop(struct net_device *netdev)
napi_disable(&priv->napi);
if (netdev->phydev)
phy_stop(netdev->phydev);
+ else if (priv->use_ncsi)
+ ncsi_stop_dev(priv->ndev);
ftgmac100_stop_hw(priv);
free_irq(priv->irq, netdev);