Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: meson-ir-tx: fix platform_no_drv_owner.cocci warnings

./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>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

authored by

jing yangyang and committed by
Mauro Carvalho Chehab
dccdd92b 92f46151

-1
-1
drivers/media/rc/meson-ir-tx.c
··· 395 395 .remove = meson_irtx_remove, 396 396 .driver = { 397 397 .name = DRIVER_NAME, 398 - .owner = THIS_MODULE, 399 398 .of_match_table = meson_irtx_dt_match, 400 399 }, 401 400 };