ASoC: imx-rpmsg: fix platform_no_drv_owner.cocci warnings
authorZou Wei <zou_wei@huawei.com>
Thu, 27 May 2021 11:07:32 +0000 (19:07 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 27 May 2021 15:25:19 +0000 (16:25 +0100)
./sound/soc/fsl/imx-rpmsg.c:140: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: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Message-Id: <1622113652-56646-1-git-send-email-zou_wei@huawei.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/imx-rpmsg.c

index 5a9a470d203ff6919f5a9b176bce92c6c2c8ca8d..f0cae8c59d544395db906b8079269a5c6993db06 100644 (file)
@@ -137,7 +137,6 @@ fail:
 static struct platform_driver imx_rpmsg_driver = {
        .driver = {
                .name = "imx-audio-rpmsg",
-               .owner = THIS_MODULE,
                .pm = &snd_soc_pm_ops,
        },
        .probe = imx_rpmsg_probe,