2021-03-13 08:25:26

by 王擎

[permalink] [raw]
Subject: [PATCH] sound: soc: fsl: Remove unnecessary THIS_MODULE

As THIS_MODULE has been set in module_platform_driver(), so remove it.

Signed-off-by: Wang Qing <[email protected]>
---
sound/soc/fsl/imx-hdmi.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/sound/soc/fsl/imx-hdmi.c b/sound/soc/fsl/imx-hdmi.c
index dbbb761..cd0235a
--- a/sound/soc/fsl/imx-hdmi.c
+++ b/sound/soc/fsl/imx-hdmi.c
@@ -223,7 +223,6 @@ MODULE_DEVICE_TABLE(of, imx_hdmi_dt_ids);
static struct platform_driver imx_hdmi_driver = {
.driver = {
.name = "imx-hdmi",
- .owner = THIS_MODULE,
.pm = &snd_soc_pm_ops,
.of_match_table = imx_hdmi_dt_ids,
},
--
2.7.4


2021-03-13 20:29:34

by Fabio Estevam

[permalink] [raw]
Subject: Re: [PATCH] sound: soc: fsl: Remove unnecessary THIS_MODULE

Hi Wang,

On Sat, Mar 13, 2021 at 5:25 AM Wang Qing <[email protected]> wrote:
>
> As THIS_MODULE has been set in module_platform_driver(), so remove it.
>
> Signed-off-by: Wang Qing <[email protected]>

Thanks for the patch, but someone else has already sent the same.