linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] ASoC: imx-rpmsg: fix platform_no_drv_owner.cocci warnings
@ 2021-05-27 11:07 Zou Wei
  2021-05-28 16:04 ` Mark Brown
  2021-05-31  7:14 ` Shengjiu Wang
  0 siblings, 2 replies; 3+ messages in thread
From: Zou Wei @ 2021-05-27 11:07 UTC (permalink / raw)
  To: timur, nicoleotsuka, Xiubo.Lee, festevam, shengjiu.wang,
	lgirdwood, broonie, perex, tiwai, shawnguo, s.hauer, kernel,
	linux-imx
  Cc: linuxppc-dev, linux-arm-kernel, linux-kernel, 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

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.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


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH -next] ASoC: imx-rpmsg: fix platform_no_drv_owner.cocci warnings
  2021-05-27 11:07 [PATCH -next] ASoC: imx-rpmsg: fix platform_no_drv_owner.cocci warnings Zou Wei
@ 2021-05-28 16:04 ` Mark Brown
  2021-05-31  7:14 ` Shengjiu Wang
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2021-05-28 16:04 UTC (permalink / raw)
  To: shawnguo, tiwai, lgirdwood, kernel, perex, nicoleotsuka, Zou Wei,
	shengjiu.wang, Xiubo.Lee, s.hauer, linux-imx, timur, festevam
  Cc: Mark, Brown, broonie, linux-arm-kernel, linuxppc-dev, linux-kernel

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,,, <broonie@kernel.org>

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH -next] ASoC: imx-rpmsg: fix platform_no_drv_owner.cocci warnings
  2021-05-27 11:07 [PATCH -next] ASoC: imx-rpmsg: fix platform_no_drv_owner.cocci warnings Zou Wei
  2021-05-28 16:04 ` Mark Brown
@ 2021-05-31  7:14 ` Shengjiu Wang
  1 sibling, 0 replies; 3+ messages in thread
From: Shengjiu Wang @ 2021-05-31  7:14 UTC (permalink / raw)
  To: Zou Wei
  Cc: Timur Tabi, Nicolin Chen, Xiubo Li, Fabio Estevam, Liam Girdwood,
	Mark Brown, Jaroslav Kysela, Takashi Iwai, Shawn Guo,
	Sascha Hauer, Sascha Hauer, NXP Linux Team, linuxppc-dev,
	moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE,
	linux-kernel

On Thu, May 27, 2021 at 6:48 PM Zou Wei <zou_wei@huawei.com> 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 <hulkci@huawei.com>
> Signed-off-by: Zou Wei <zou_wei@huawei.com>

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
>

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-05-31  7:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-27 11:07 [PATCH -next] ASoC: imx-rpmsg: fix platform_no_drv_owner.cocci warnings Zou Wei
2021-05-28 16:04 ` Mark Brown
2021-05-31  7:14 ` Shengjiu Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).