fix breakage introduced with [17394]
[openwrt.git] / target / linux / ar71xx / patches-2.6.30 / 801-ag71xx-remove-redundant-napi-functions.patch
1 --- a/drivers/net/ag71xx/ag71xx_main.c
2 +++ b/drivers/net/ag71xx/ag71xx_main.c
3 @@ -575,7 +575,7 @@ static void ag71xx_oom_timer_handler(uns
4 struct net_device *dev = (struct net_device *) data;
5 struct ag71xx *ag = netdev_priv(dev);
6
7 - netif_rx_schedule(&ag->napi);
8 + napi_schedule(&ag->napi);
9 }
10
11 static void ag71xx_tx_timeout(struct net_device *dev)
12 @@ -731,7 +731,7 @@ static int ag71xx_poll(struct napi_struc
13 DBG("%s: disable polling mode, done=%d, limit=%d\n",
14 dev->name, done, limit);
15
16 - netif_rx_complete(napi);
17 + napi_complete(napi);
18
19 /* enable interrupts */
20 spin_lock_irqsave(&ag->lock, flags);
21 @@ -750,7 +750,7 @@ static int ag71xx_poll(struct napi_struc
22 printk(KERN_DEBUG "%s: out of memory\n", dev->name);
23
24 mod_timer(&ag->oom_timer, jiffies + AG71XX_OOM_REFILL);
25 - netif_rx_complete(napi);
26 + napi_complete(napi);
27 return 0;
28 }
29
30 @@ -780,7 +780,7 @@ static irqreturn_t ag71xx_interrupt(int
31 if (likely(status & AG71XX_INT_POLL)) {
32 ag71xx_int_disable(ag, AG71XX_INT_POLL);
33 DBG("%s: enable polling mode\n", dev->name);
34 - netif_rx_schedule(&ag->napi);
35 + napi_schedule(&ag->napi);
36 }
37
38 return IRQ_HANDLED;
This page took 0.047755 seconds and 5 git commands to generate.