diff options
author | Neil Horman <nhorman@tuxdriver.com> | 2008-12-22 23:43:12 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-22 23:43:12 -0500 |
commit | 908a7a16b852ffd618a9127be8d62432182d81b4 (patch) | |
tree | a0b509227e26bef7edd347575761e0dbeb5756e7 /drivers/net/arm | |
parent | 889bd9b6dbcd426b8698c4a779dd7dbf247f57b8 (diff) |
net: Remove unused netdev arg from some NAPI interfaces.
When the napi api was changed to separate its 1:1 binding to the net_device
struct, the netif_rx_[prep|schedule|complete] api failed to remove the now
vestigual net_device structure parameter. This patch cleans up that api by
properly removing it..
Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/arm')
-rw-r--r-- | drivers/net/arm/ep93xx_eth.c | 6 | ||||
-rw-r--r-- | drivers/net/arm/ixp4xx_eth.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/arm/ep93xx_eth.c b/drivers/net/arm/ep93xx_eth.c index 588c9739d13d..6ecc600c1bcc 100644 --- a/drivers/net/arm/ep93xx_eth.c +++ b/drivers/net/arm/ep93xx_eth.c | |||
@@ -298,7 +298,7 @@ poll_some_more: | |||
298 | int more = 0; | 298 | int more = 0; |
299 | 299 | ||
300 | spin_lock_irq(&ep->rx_lock); | 300 | spin_lock_irq(&ep->rx_lock); |
301 | __netif_rx_complete(dev, napi); | 301 | __netif_rx_complete(napi); |
302 | wrl(ep, REG_INTEN, REG_INTEN_TX | REG_INTEN_RX); | 302 | wrl(ep, REG_INTEN, REG_INTEN_TX | REG_INTEN_RX); |
303 | if (ep93xx_have_more_rx(ep)) { | 303 | if (ep93xx_have_more_rx(ep)) { |
304 | wrl(ep, REG_INTEN, REG_INTEN_TX); | 304 | wrl(ep, REG_INTEN, REG_INTEN_TX); |
@@ -415,9 +415,9 @@ static irqreturn_t ep93xx_irq(int irq, void *dev_id) | |||
415 | 415 | ||
416 | if (status & REG_INTSTS_RX) { | 416 | if (status & REG_INTSTS_RX) { |
417 | spin_lock(&ep->rx_lock); | 417 | spin_lock(&ep->rx_lock); |
418 | if (likely(netif_rx_schedule_prep(dev, &ep->napi))) { | 418 | if (likely(netif_rx_schedule_prep(&ep->napi))) { |
419 | wrl(ep, REG_INTEN, REG_INTEN_TX); | 419 | wrl(ep, REG_INTEN, REG_INTEN_TX); |
420 | __netif_rx_schedule(dev, &ep->napi); | 420 | __netif_rx_schedule(&ep->napi); |
421 | } | 421 | } |
422 | spin_unlock(&ep->rx_lock); | 422 | spin_unlock(&ep->rx_lock); |
423 | } | 423 | } |
diff --git a/drivers/net/arm/ixp4xx_eth.c b/drivers/net/arm/ixp4xx_eth.c index 14ffa2a61890..b03609f2e90f 100644 --- a/drivers/net/arm/ixp4xx_eth.c +++ b/drivers/net/arm/ixp4xx_eth.c | |||
@@ -498,7 +498,7 @@ static void eth_rx_irq(void *pdev) | |||
498 | printk(KERN_DEBUG "%s: eth_rx_irq\n", dev->name); | 498 | printk(KERN_DEBUG "%s: eth_rx_irq\n", dev->name); |
499 | #endif | 499 | #endif |
500 | qmgr_disable_irq(port->plat->rxq); | 500 | qmgr_disable_irq(port->plat->rxq); |
501 | netif_rx_schedule(dev, &port->napi); | 501 | netif_rx_schedule(&port->napi); |
502 | } | 502 | } |
503 | 503 | ||
504 | static int eth_poll(struct napi_struct *napi, int budget) | 504 | static int eth_poll(struct napi_struct *napi, int budget) |
@@ -526,7 +526,7 @@ static int eth_poll(struct napi_struct *napi, int budget) | |||
526 | printk(KERN_DEBUG "%s: eth_poll netif_rx_complete\n", | 526 | printk(KERN_DEBUG "%s: eth_poll netif_rx_complete\n", |
527 | dev->name); | 527 | dev->name); |
528 | #endif | 528 | #endif |
529 | netif_rx_complete(dev, napi); | 529 | netif_rx_complete(napi); |
530 | qmgr_enable_irq(rxq); | 530 | qmgr_enable_irq(rxq); |
531 | if (!qmgr_stat_empty(rxq) && | 531 | if (!qmgr_stat_empty(rxq) && |
532 | netif_rx_reschedule(dev, napi)) { | 532 | netif_rx_reschedule(dev, napi)) { |
@@ -1025,7 +1025,7 @@ static int eth_open(struct net_device *dev) | |||
1025 | } | 1025 | } |
1026 | ports_open++; | 1026 | ports_open++; |
1027 | /* we may already have RX data, enables IRQ */ | 1027 | /* we may already have RX data, enables IRQ */ |
1028 | netif_rx_schedule(dev, &port->napi); | 1028 | netif_rx_schedule(&port->napi); |
1029 | return 0; | 1029 | return 0; |
1030 | } | 1030 | } |
1031 | 1031 | ||