[netdrvr] dm9000: use delayed work to update mii phy state fix
use cancel_delayed_work_sync() Cc: Ben Dooks <ben-linux@fluff.org> Cc: Enrico Scholz <enrico.scholz@sigma-chemnitz.de> Cc: Jeff Garzik <jeff@garzik.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:
parent
d494eacde8
commit
5bceeda325
|
@ -903,7 +903,7 @@ dm9000_stop(struct net_device *ndev)
|
||||||
if (netif_msg_ifdown(db))
|
if (netif_msg_ifdown(db))
|
||||||
dev_dbg(db->dev, "shutting down %s\n", ndev->name);
|
dev_dbg(db->dev, "shutting down %s\n", ndev->name);
|
||||||
|
|
||||||
cancel_delayed_work(&db->phy_poll);
|
cancel_delayed_work_sync(&db->phy_poll);
|
||||||
|
|
||||||
netif_stop_queue(ndev);
|
netif_stop_queue(ndev);
|
||||||
netif_carrier_off(ndev);
|
netif_carrier_off(ndev);
|
||||||
|
|
Loading…
Reference in New Issue