[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220512080357.44357-1-yang.lee@linux.alibaba.com>
Date: Thu, 12 May 2022 16:03:57 +0800
From: Yang Li <yang.lee@...ux.alibaba.com>
To: wellslutw@...il.com
Cc: edumazet@...gle.com, pabeni@...hat.com, davem@...emloft.net,
kuba@...nel.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, Yang Li <yang.lee@...ux.alibaba.com>,
Abaci Robot <abaci@...ux.alibaba.com>
Subject: [PATCH -next] 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@...ux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@...ux.alibaba.com>
---
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 8320fa833d3e..bf32f425b19d 100644
--- a/drivers/net/ethernet/sunplus/spl2sw_driver.c
+++ b/drivers/net/ethernet/sunplus/spl2sw_driver.c
@@ -566,7 +566,6 @@ static struct platform_driver spl2sw_driver = {
.remove = spl2sw_remove,
.driver = {
.name = "sp7021_emac",
- .owner = THIS_MODULE,
.of_match_table = spl2sw_of_match,
},
};
--
2.20.1.7.g153144c
Powered by blists - more mailing lists