diff options
author | Jakub Kicinski <kuba@kernel.org> | 2022-05-04 18:39:39 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-05-06 00:53:28 +0200 |
commit | fd49f8e61cd3a62251838e47507ee6a423e88214 (patch) | |
tree | 04ca1a278cdaed6388eb141e38c3b7dbb0a81f65 /drivers/net/ethernet/jme.c | |
parent | net: ethernet: Prepare cleanup of powerpc's asm/prom.h (diff) | |
download | linux-fd49f8e61cd3a62251838e47507ee6a423e88214.tar.xz linux-fd49f8e61cd3a62251838e47507ee6a423e88214.zip |
jme: remove an unnecessary indirection
Remove a define which looks like a OS abstraction layer
and makes spatch conversions on this driver problematic.
Link: https://lore.kernel.org/r/20220504163939.551231-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/jme.c')
-rw-r--r-- | drivers/net/ethernet/jme.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/jme.c b/drivers/net/ethernet/jme.c index b6c5122da995..f43d6616bc0d 100644 --- a/drivers/net/ethernet/jme.c +++ b/drivers/net/ethernet/jme.c @@ -3009,7 +3009,7 @@ jme_init_one(struct pci_dev *pdev, jwrite32(jme, JME_APMC, apmc); } - NETIF_NAPI_SET(netdev, &jme->napi, jme_poll, NAPI_POLL_WEIGHT) + netif_napi_add(netdev, &jme->napi, jme_poll, NAPI_POLL_WEIGHT); spin_lock_init(&jme->phy_lock); spin_lock_init(&jme->macaddr_lock); |