[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20220705005827.666160-1-cuigaosheng1@huawei.com>
Date: Tue, 5 Jul 2022 08:58:27 +0800
From: Gaosheng Cui <cuigaosheng1@...wei.com>
To: <srinivas.kandagatla@...aro.org>, <bgoswami@...cinc.com>,
<lgirdwood@...il.com>, <broonie@...nel.org>, <perex@...ex.cz>,
<tiwai@...e.com>, <cuigaosheng1@...wei.com>
CC: <alsa-devel@...a-project.org>, <linux-kernel@...r.kernel.org>
Subject: [PATCH -next] ASoC: codecs: wsa883x: fix warning using-module-alias-sdw.cocci
This patch adds missing MODULE_DEVICE_TABLE definition which generates
correct modalias for automatic loading of this driver when it is built
as an external module.
Reported-by: Hulk Robot <hulkci@...wei.com>
Signed-off-by: Gaosheng Cui <cuigaosheng1@...wei.com>
---
sound/soc/codecs/wsa883x.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sound/soc/codecs/wsa883x.c b/sound/soc/codecs/wsa883x.c
index 40c7d64a9c41..f346abe8b18a 100644
--- a/sound/soc/codecs/wsa883x.c
+++ b/sound/soc/codecs/wsa883x.c
@@ -1491,6 +1491,8 @@ static const struct sdw_device_id wsa883x_swr_id[] = {
{},
};
+MODULE_DEVICE_TABLE(sdw, wsa883x_swr_id);
+
static struct sdw_driver wsa883x_codec_driver = {
.driver = {
.name = "wsa883x-codec",
--
2.25.1
Powered by blists - more mailing lists