diff options
author | Yang Li <yang.lee@linux.alibaba.com> | 2022-05-12 10:03:57 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-05-13 12:31:18 +0200 |
commit | 7b8b82224c26863d9b6c67f6cc6044bc24044e44 (patch) | |
tree | 45661b306850d2fa5d0570abd2c50eda161aa1cb /drivers/net/ethernet/sunplus | |
parent | net: page_pool: add page allocation stats for two fast page allocate path (diff) | |
download | linux-7b8b82224c26863d9b6c67f6cc6044bc24044e44.tar.xz linux-7b8b82224c26863d9b6c67f6cc6044bc24044e44.zip |
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')
-rw-r--r-- | drivers/net/ethernet/sunplus/spl2sw_driver.c | 1 |
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, }, }; |