# \[PATCH -next\] ASoC: imx-rpmsg: fix platform\_no\_drv\_owner.cocci warnings

- Subsystems: FREESCALE SOC SOUND DRIVERS, SOUND, SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEMENT (ASoC), THE REST
- Maintainers: Shengjiu Wang, Xiubo Li, Jaroslav Kysela, Takashi Iwai, Liam Girdwood, Mark Brown, Linus Torvalds
- Status: LANDED (47c0d825b926 · 2021-05-27 15:25)
- Landed in mainline as 47c0d825b926 on 2021-05-27.
- List: linuxppc-dev
- 3 messages, 3 authors
- Page: https://ratatoskr.run/linuxppc-dev/2021/05/1393836/t

## \[PATCH -next\] ASoC: imx-rpmsg: fix platform\_no\_drv\_owner.cocci warnings

- From: Zou Wei \<hidden\>
- Date: 2021-05-27 10:48:54 
- Message: https://ratatoskr.run/linuxppc-dev/2021/05/1393836.md

```text
./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 <redacted>
Signed-off-by: Zou Wei <redacted>
---
 sound/soc/fsl/imx-rpmsg.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/sound/soc/fsl/imx-rpmsg.c b/sound/soc/fsl/imx-rpmsg.c
index 5a9a470..f0cae8c 100644
--- a/sound/soc/fsl/imx-rpmsg.c
+++ b/sound/soc/fsl/imx-rpmsg.c
@@ -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

```

## Re: \[PATCH -next\] ASoC: imx-rpmsg: fix platform\_no\_drv\_owner.cocci warnings

- From: Mark Brown \<broonie@kernel.org\>
- Date: 2021-05-28 16:05:12 
- Message: https://ratatoskr.run/linuxppc-dev/2021/05/1395324.md

```text
From: Mark Brown,,, <broonie@kernel.org>

On Thu, 27 May 2021 19:07:32 +0800, Zou Wei wrote:
> ./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,
-- 
Mark Brown,,, [ref]
```

## Re: \[PATCH -next\] ASoC: imx-rpmsg: fix platform\_no\_drv\_owner.cocci warnings

- From: Shengjiu Wang \<shengjiu.wang@gmail.com\>
- Date: 2021-05-31 07:14:59 
- Message: https://ratatoskr.run/linuxppc-dev/2021/05/1396227.md

```text
On Thu, May 27, 2021 at 6:48 PM Zou Wei [ref] wrote:
>
> ./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 <redacted>
> Signed-off-by: Zou Wei <redacted>

Acked-by: Shengjiu Wang <shengjiu.wang@gmail.com>

> ---
>  sound/soc/fsl/imx-rpmsg.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/sound/soc/fsl/imx-rpmsg.c b/sound/soc/fsl/imx-rpmsg.c
> index 5a9a470..f0cae8c 100644
> --- a/sound/soc/fsl/imx-rpmsg.c
> +++ b/sound/soc/fsl/imx-rpmsg.c
> @@ -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
>
```
