From: jing yangyang Date: Sat, 21 Aug 2021 03:50:33 +0000 (+0200) Subject: media: meson-ir-tx: fix platform_no_drv_owner.cocci warnings X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=dccdd92b7b08ddbb7a8dbc1d6daba1f4fbd6bba2;p=linux.git 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 Signed-off-by: jing yangyang Signed-off-by: Sean Young Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/rc/meson-ir-tx.c b/drivers/media/rc/meson-ir-tx.c index 3055f8e1b6ffa..c22cd26a5c07e 100644 --- a/drivers/media/rc/meson-ir-tx.c +++ b/drivers/media/rc/meson-ir-tx.c @@ -395,7 +395,6 @@ static struct platform_driver meson_irtx_pd = { .remove = meson_irtx_remove, .driver = { .name = DRIVER_NAME, - .owner = THIS_MODULE, .of_match_table = meson_irtx_dt_match, }, };