diff options
author | Rosen Penev <rosenp@gmail.com> | 2017-10-17 09:25:56 -0700 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2017-11-06 16:39:41 +0100 |
commit | e555153807777539c9b97f8d13563135592d68e7 (patch) | |
tree | b69d407607852d508dd0468ca47a410c90816a58 /target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c | |
parent | 890e668273745a298938c4abb39c5e5804c0cdd5 (diff) | |
download | upstream-e555153807777539c9b97f8d13563135592d68e7.tar.gz upstream-e555153807777539c9b97f8d13563135592d68e7.tar.bz2 upstream-e555153807777539c9b97f8d13563135592d68e7.zip |
ag71xx: Switch from driver to kernel macro for NAPI_WEIGHT.
NAPI_POLL_WEIGHT was introduced in the kernel for exactly this purpose 5 years ago.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c')
-rw-r--r-- | target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c b/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c index 566e9513d8..e9a3d59fa3 100644 --- a/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c +++ b/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c @@ -1360,7 +1360,7 @@ static int ag71xx_probe(struct platform_device *pdev) memcpy(dev->dev_addr, pdata->mac_addr, ETH_ALEN); - netif_napi_add(dev, &ag->napi, ag71xx_poll, AG71XX_NAPI_WEIGHT); + netif_napi_add(dev, &ag->napi, ag71xx_poll, NAPI_POLL_WEIGHT); ag71xx_dump_regs(ag); |