diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/pcnet32.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/pcnet32.c b/drivers/net/pcnet32.c index 159a64586d00..7f7feaaf53d3 100644 --- a/drivers/net/pcnet32.c +++ b/drivers/net/pcnet32.c | |||
@@ -442,7 +442,9 @@ static struct pcnet32_access pcnet32_dwio = { | |||
442 | 442 | ||
443 | static void pcnet32_netif_stop(struct net_device *dev) | 443 | static void pcnet32_netif_stop(struct net_device *dev) |
444 | { | 444 | { |
445 | #ifdef CONFIG_PCNET32_NAPI | ||
445 | struct pcnet32_private *lp = netdev_priv(dev); | 446 | struct pcnet32_private *lp = netdev_priv(dev); |
447 | #endif | ||
446 | dev->trans_start = jiffies; | 448 | dev->trans_start = jiffies; |
447 | #ifdef CONFIG_PCNET32_NAPI | 449 | #ifdef CONFIG_PCNET32_NAPI |
448 | napi_disable(&lp->napi); | 450 | napi_disable(&lp->napi); |
@@ -452,7 +454,9 @@ static void pcnet32_netif_stop(struct net_device *dev) | |||
452 | 454 | ||
453 | static void pcnet32_netif_start(struct net_device *dev) | 455 | static void pcnet32_netif_start(struct net_device *dev) |
454 | { | 456 | { |
457 | #ifdef CONFIG_PCNET32_NAPI | ||
455 | struct pcnet32_private *lp = netdev_priv(dev); | 458 | struct pcnet32_private *lp = netdev_priv(dev); |
459 | #endif | ||
456 | netif_wake_queue(dev); | 460 | netif_wake_queue(dev); |
457 | #ifdef CONFIG_PCNET32_NAPI | 461 | #ifdef CONFIG_PCNET32_NAPI |
458 | napi_enable(&lp->napi); | 462 | napi_enable(&lp->napi); |