summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/sunplus/spl2sw_driver.c
diff options
context:
space:
mode:
authorYang Li <yang.lee@linux.alibaba.com>2022-05-12 16:03:57 +0800
committerDavid S. Miller <davem@davemloft.net>2022-05-13 11:31:18 +0100
commit7b8b82224c26863d9b6c67f6cc6044bc24044e44 (patch)
tree45661b306850d2fa5d0570abd2c50eda161aa1cb /drivers/net/ethernet/sunplus/spl2sw_driver.c
parent0f6deac3a07958195173119627502350925dce78 (diff)
net: ethernet: fix platform_no_drv_owner.cocci warning
Remove .owner field if calls are used which set it automatically. ./drivers/net/ethernet/sunplus/spl2sw_driver.c:569:3-8: No need to set .owner here. The core will do it. Reported-by: Abaci Robot <abaci@linux.alibaba.com> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sunplus/spl2sw_driver.c')
-rw-r--r--drivers/net/ethernet/sunplus/spl2sw_driver.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sunplus/spl2sw_driver.c b/drivers/net/ethernet/sunplus/spl2sw_driver.c
index 1cb7076f946d..3773ce5e12cc 100644
--- a/drivers/net/ethernet/sunplus/spl2sw_driver.c
+++ b/drivers/net/ethernet/sunplus/spl2sw_driver.c
@@ -554,7 +554,6 @@ static struct platform_driver spl2sw_driver = {
.remove = spl2sw_remove,
.driver = {
.name = "sp7021_emac",
- .owner = THIS_MODULE,
.of_match_table = spl2sw_of_match,
},
};