From 855251c1c52271942fd9dd99a51f777186dd2ba9 Mon Sep 17 00:00:00 2001 From: Yang Li Date: Thu, 12 May 2022 16:03:57 +0800 Subject: [PATCH] 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 Signed-off-by: Yang Li Signed-off-by: David S. Miller --- drivers/net/ethernet/sunplus/spl2sw_driver.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/sunplus/spl2sw_driver.c b/drivers/net/ethernet/sunplus/spl2sw_driver.c index 1cb7076f946d6..3773ce5e12cc0 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, }, }; -- 2.39.5