summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/wsa883x.c
diff options
context:
space:
mode:
authorGaosheng Cui <cuigaosheng1@huawei.com>2022-07-05 08:53:15 +0800
committerMark Brown <broonie@kernel.org>2022-07-05 16:44:31 +0100
commiteec8a5f44e4f68c64ce21d90e438e31e85b92178 (patch)
tree836f0569e5c104d592b2eab2542c62536e916c42 /sound/soc/codecs/wsa883x.c
parentdcc165d6179c3934b93b8c3bffde1ed9710fd7ef (diff)
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@huawei.com> Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com> Link: https://lore.kernel.org/r/20220705005315.663920-1-cuigaosheng1@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/wsa883x.c')
-rw-r--r--sound/soc/codecs/wsa883x.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/wsa883x.c b/sound/soc/codecs/wsa883x.c
index dcd88175b9cd..63e1d7aa6137 100644
--- a/sound/soc/codecs/wsa883x.c
+++ b/sound/soc/codecs/wsa883x.c
@@ -1492,6 +1492,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",