aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/8139too.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/8139too.c')
-rw-r--r--drivers/net/8139too.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/8139too.c b/drivers/net/8139too.c
index f5166dccd8df..e3bad8247fd1 100644
--- a/drivers/net/8139too.c
+++ b/drivers/net/8139too.c
@@ -992,6 +992,7 @@ static int __devinit rtl8139_init_one (struct pci_dev *pdev,
992 * features 992 * features
993 */ 993 */
994 dev->features |= NETIF_F_SG | NETIF_F_HW_CSUM | NETIF_F_HIGHDMA; 994 dev->features |= NETIF_F_SG | NETIF_F_HW_CSUM | NETIF_F_HIGHDMA;
995 dev->vlan_features = dev->features;
995 996
996 dev->irq = pdev->irq; 997 dev->irq = pdev->irq;
997 998
@@ -1092,10 +1093,11 @@ err_out:
1092static void __devexit rtl8139_remove_one (struct pci_dev *pdev) 1093static void __devexit rtl8139_remove_one (struct pci_dev *pdev)
1093{ 1094{
1094 struct net_device *dev = pci_get_drvdata (pdev); 1095 struct net_device *dev = pci_get_drvdata (pdev);
1096 struct rtl8139_private *tp = netdev_priv(dev);
1095 1097
1096 assert (dev != NULL); 1098 assert (dev != NULL);
1097 1099
1098 flush_scheduled_work(); 1100 cancel_delayed_work_sync(&tp->thread);
1099 1101
1100 unregister_netdev (dev); 1102 unregister_netdev (dev);
1101 1103