OSDN Git Service

media: meson-ir-tx: fix platform_no_drv_owner.cocci warnings
authorjing yangyang <jing.yangyang@zte.com.cn>
Sat, 21 Aug 2021 03:50:33 +0000 (05:50 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 30 Sep 2021 08:08:01 +0000 (10:08 +0200)
./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>
drivers/media/rc/meson-ir-tx.c

index 3055f8e..c22cd26 100644 (file)
@@ -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,
        },
 };