linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH linux-next] media:meson-ir-tx: fix platform_no_drv_owner.cocci warnings
@ 2021-08-21  3:50 CGEL
  0 siblings, 0 replies; only message in thread
From: CGEL @ 2021-08-21  3:50 UTC (permalink / raw)
  To: Sean Young
  Cc: Mauro Carvalho Chehab, Neil Armstrong, Kevin Hilman,
	Jerome Brunet, Martin Blumenstingl, linux-media,
	linux-arm-kernel, linux-amlogic, linux-kernel, jing yangyang,
	Zeal Robot

From: jing yangyang <jing.yangyang@zte.com.cn>

./drivers/media/rc/meson-ir-tx.c:398:3-8: No need to set .owner here. The core will do it.

Remove .owner field if calls are used which set it automatically

Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: jing yangyang <jing.yangyang@zte.com.cn>
---
 drivers/media/rc/meson-ir-tx.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/media/rc/meson-ir-tx.c b/drivers/media/rc/meson-ir-tx.c
index 3055f8e..c22cd26 100644
--- a/drivers/media/rc/meson-ir-tx.c
+++ b/drivers/media/rc/meson-ir-tx.c
@@ -395,7 +395,6 @@ static int meson_irtx_remove(struct platform_device *pdev)
 	.remove = meson_irtx_remove,
 	.driver = {
 		.name = DRIVER_NAME,
-		.owner  = THIS_MODULE,
 		.of_match_table = meson_irtx_dt_match,
 	},
 };
-- 
1.8.3.1



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-21  3:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-21  3:50 [PATCH linux-next] media:meson-ir-tx: fix platform_no_drv_owner.cocci warnings CGEL

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).