From c0f50574223c468f135cecd31132b68829c654d8 Mon Sep 17 00:00:00 2001 From: Jakub Kicinski Date: Wed, 6 Jul 2022 20:00:19 -0700 Subject: [PATCH] eth: mtk: switch to netif_napi_add_tx() netif_napi_add_tx() does not require the weight argument. Signed-off-by: Jakub Kicinski Signed-off-by: David S. Miller --- drivers/net/ethernet/mediatek/mtk_star_emac.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ethernet/mediatek/mtk_star_emac.c b/drivers/net/ethernet/mediatek/mtk_star_emac.c index 21c3668..3f0e5e6 100644 --- a/drivers/net/ethernet/mediatek/mtk_star_emac.c +++ b/drivers/net/ethernet/mediatek/mtk_star_emac.c @@ -1653,8 +1653,7 @@ static int mtk_star_probe(struct platform_device *pdev) netif_napi_add(ndev, &priv->rx_napi, mtk_star_rx_poll, NAPI_POLL_WEIGHT); - netif_tx_napi_add(ndev, &priv->tx_napi, mtk_star_tx_poll, - NAPI_POLL_WEIGHT); + netif_napi_add_tx(ndev, &priv->tx_napi, mtk_star_tx_poll); return devm_register_netdev(dev, ndev); } -- 2.7.4