diff options
Diffstat (limited to 'drivers/net/s2io.c')
-rw-r--r-- | drivers/net/s2io.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/s2io.c b/drivers/net/s2io.c index 9a1e32fb720b..39c17cecb8b9 100644 --- a/drivers/net/s2io.c +++ b/drivers/net/s2io.c | |||
@@ -8341,9 +8341,11 @@ static void __devexit s2io_rem_nic(struct pci_dev *pdev) | |||
8341 | return; | 8341 | return; |
8342 | } | 8342 | } |
8343 | 8343 | ||
8344 | flush_scheduled_work(); | ||
8345 | |||
8346 | sp = netdev_priv(dev); | 8344 | sp = netdev_priv(dev); |
8345 | |||
8346 | cancel_work_sync(&sp->rst_timer_task); | ||
8347 | cancel_work_sync(&sp->set_link_task); | ||
8348 | |||
8347 | unregister_netdev(dev); | 8349 | unregister_netdev(dev); |
8348 | 8350 | ||
8349 | free_shared_mem(sp); | 8351 | free_shared_mem(sp); |