diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/r8169.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c index e8960f294a6e..c5eaf4931a91 100644 --- a/drivers/net/r8169.c +++ b/drivers/net/r8169.c | |||
@@ -392,7 +392,9 @@ struct rtl8169_private { | |||
392 | void __iomem *mmio_addr; /* memory map physical address */ | 392 | void __iomem *mmio_addr; /* memory map physical address */ |
393 | struct pci_dev *pci_dev; /* Index of PCI device */ | 393 | struct pci_dev *pci_dev; /* Index of PCI device */ |
394 | struct net_device *dev; | 394 | struct net_device *dev; |
395 | #ifdef CONFIG_R8169_NAPI | ||
395 | struct napi_struct napi; | 396 | struct napi_struct napi; |
397 | #endif | ||
396 | spinlock_t lock; /* spin lock flag */ | 398 | spinlock_t lock; /* spin lock flag */ |
397 | u32 msg_enable; | 399 | u32 msg_enable; |
398 | int chipset; | 400 | int chipset; |
@@ -3010,7 +3012,9 @@ core_down: | |||
3010 | synchronize_irq(dev->irq); | 3012 | synchronize_irq(dev->irq); |
3011 | 3013 | ||
3012 | if (!poll_locked) { | 3014 | if (!poll_locked) { |
3015 | #ifdef CONFIG_R8169_NAPI | ||
3013 | napi_disable(&tp->napi); | 3016 | napi_disable(&tp->napi); |
3017 | #endif | ||
3014 | poll_locked++; | 3018 | poll_locked++; |
3015 | } | 3019 | } |
3016 | 3020 | ||