Skip to contentSkip to conversation

ASoC: imx-rpmsg: fix platform_no_drv_owner.cocci warnings

PATCH Applied Zou Wei 3 participants 3 messages May 27, 2021 – May 31, 2021

Subsystems (4)
lore
Share & tools
lore

Zou Wei

author
#0 lore raw

PATCH 1/1 ASoC: imx-rpmsg: fix platform_no_drv_owner.cocci warnings

./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

---
 sound/soc/fsl/imx-rpmsg.c | 1 -
 1 file changed, 1 deletion(-)
sound/soc/fsl/imx-rpmsg.c +0 -1
index 5a9a470..f0cae8c 100644
@@ -137,7 +137,6 @@ static int imx_rpmsg_probe(struct platform_device *pdev)
 static struct platform_driver imx_rpmsg_driver = {
 	.driver = {
 		.name = "imx-audio-rpmsg",
-		.owner = THIS_MODULE,
 		.pm = &snd_soc_pm_ops,
 	},
 	.probe = imx_rpmsg_probe,
Signature · 1 line
2.6.2
maintainer Applied
#1 lore raw

From: Mark Brown,,, <[email protected]>

Quoted 5 lines · Zou Wei

./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

Applied, thanks!

[1/1] ASoC: imx-rpmsg: fix platform_no_drv_owner.cocci warnings

      commit: 47c0d825b926856d86685a48c82f693f56ca3f6f

Best regards,

Signature · 1 line
Mark Brown,,, <[email protected]>
maintainer Acked-by on v1 1/1
#2 lore raw
In reply to Zou Wei
Quoted 9 lines · Zou Wei

./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

Quoted 19 lines
---
 sound/soc/fsl/imx-rpmsg.c | 1 -
 1 file changed, 1 deletion(-)
sound/soc/fsl/imx-rpmsg.c +0 -2
index 5a9a470..f0cae8c 100644
@@ -137,7 +137,6 @@ static int imx_rpmsg_probe(struct platform_device *pdev)
 static struct platform_driver imx_rpmsg_driver = {
        .driver = {
                .name = "imx-audio-rpmsg",
-               .owner = THIS_MODULE,
                .pm = &snd_soc_pm_ops,
        },
        .probe = imx_rpmsg_probe,
--

2.6.2