From 6a9d66a05b9b2d59bfef3d114812138aa880a6c7 Mon Sep 17 00:00:00 2001 From: Yang Li Date: Wed, 24 Nov 2021 10:36:24 +0800 Subject: tsnep: fix platform_no_drv_owner.cocci warning Remove .owner field if calls are used which set it automatically Eliminate the following coccicheck warning: ./drivers/net/ethernet/engleder/tsnep_main.c:1263:3-8: No need to set .owner here. The core will do it. Reported-by: Abaci Robot Signed-off-by: Yang Li Reviewed-by: Gerhard Engleder Link: https://lore.kernel.org/r/1637721384-70836-2-git-send-email-yang.lee@linux.alibaba.com Signed-off-by: Jakub Kicinski --- drivers/net/ethernet/engleder/tsnep_main.c | 1 - 1 file changed, 1 deletion(-) (limited to 'drivers') diff --git a/drivers/net/ethernet/engleder/tsnep_main.c b/drivers/net/ethernet/engleder/tsnep_main.c index 8333313dd706..03d5b31d147c 100644 --- a/drivers/net/ethernet/engleder/tsnep_main.c +++ b/drivers/net/ethernet/engleder/tsnep_main.c @@ -1260,7 +1260,6 @@ MODULE_DEVICE_TABLE(of, tsnep_of_match); static struct platform_driver tsnep_driver = { .driver = { .name = TSNEP, - .owner = THIS_MODULE, .of_match_table = of_match_ptr(tsnep_of_match), }, .probe = tsnep_probe, -- cgit v1.2.3