ASoC: imx-audio-rpmsg: Remove redundant initialization owner in imx_audio_rpmsg_driver
authorLi Zetao <lizetao1@huawei.com>
Tue, 8 Aug 2023 02:17:28 +0000 (10:17 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 8 Aug 2023 17:57:14 +0000 (18:57 +0100)
The module_rpmsg_driver() will set "THIS_MODULE" to driver.owner when
register a rpmsg_driver driver, so it is redundant initialization to set
driver.owner in the statement. Remove it for clean code.

Signed-off-by: Li Zetao <lizetao1@huawei.com>
Link: https://lore.kernel.org/r/20230808021728.2978035-1-lizetao1@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/imx-audio-rpmsg.c

index d5234ac..289e47c 100644 (file)
@@ -116,7 +116,6 @@ static struct rpmsg_device_id imx_audio_rpmsg_id_table[] = {
 
 static struct rpmsg_driver imx_audio_rpmsg_driver = {
        .drv.name       = "imx_audio_rpmsg",
-       .drv.owner      = THIS_MODULE,
        .id_table       = imx_audio_rpmsg_id_table,
        .probe          = imx_audio_rpmsg_probe,
        .callback       = imx_audio_rpmsg_cb,