]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: ethernet: fix platform_no_drv_owner.cocci warning
authorYang Li <yang.lee@linux.alibaba.com>
Thu, 12 May 2022 08:03:57 +0000 (16:03 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 May 2022 10:31:18 +0000 (11:31 +0100)
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>
drivers/net/ethernet/sunplus/spl2sw_driver.c

index 1cb7076f946d67b4a1a625e3748303f6fc8a26db..3773ce5e12cc04923f7315fb63c54f700b2c3c4f 100644 (file)
@@ -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,
        },
 };