Skip to content

Commit

Permalink
[netdrvr] dm9000: use delayed work to update mii phy state fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrew Morton authored and Jeff Garzik committed May 22, 2008
1 parent d494eac commit 5bceeda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/dm9000.c
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@ dm9000_stop(struct net_device *ndev)
if (netif_msg_ifdown(db))
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_carrier_off(ndev);
Expand Down

0 comments on commit 5bceeda

Please sign in to comment.