diff options
author | Jakub Kicinski <kuba@kernel.org> | 2022-05-06 10:07:51 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-05-08 11:33:57 +0100 |
commit | 6f83cb8cbfbfc2f26c644dba98992356a74aec4c (patch) | |
tree | eb88fda00790024bd1dfc61db670cd9f638b7f48 /drivers/net/wan/fsl_ucc_hdlc.c | |
parent | d484735dcf923e7872d5e353aacfaa4f42dea1d4 (diff) | |
download | linux-stable-6f83cb8cbfbfc2f26c644dba98992356a74aec4c.tar.gz linux-stable-6f83cb8cbfbfc2f26c644dba98992356a74aec4c.tar.bz2 linux-stable-6f83cb8cbfbfc2f26c644dba98992356a74aec4c.zip |
net: wan: switch to netif_napi_add_weight()
A handful of WAN drivers use custom napi weights,
switch them to the new API.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wan/fsl_ucc_hdlc.c')
-rw-r--r-- | drivers/net/wan/fsl_ucc_hdlc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wan/fsl_ucc_hdlc.c b/drivers/net/wan/fsl_ucc_hdlc.c index 5ae2d27b5da9..22edea6ca4b8 100644 --- a/drivers/net/wan/fsl_ucc_hdlc.c +++ b/drivers/net/wan/fsl_ucc_hdlc.c @@ -1231,7 +1231,7 @@ static int ucc_hdlc_probe(struct platform_device *pdev) dev->watchdog_timeo = 2 * HZ; hdlc->attach = ucc_hdlc_attach; hdlc->xmit = ucc_hdlc_tx; - netif_napi_add(dev, &uhdlc_priv->napi, ucc_hdlc_poll, 32); + netif_napi_add_weight(dev, &uhdlc_priv->napi, ucc_hdlc_poll, 32); if (register_hdlc_device(dev)) { ret = -ENOBUFS; pr_err("ucc_hdlc: unable to register hdlc device\n"); |