summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/rk3308_codec.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2024-04-04 11:57:34 +0200
committerMark Brown <broonie@kernel.org>2024-04-04 12:59:41 +0100
commit2ba2d17170f9e415fc31d7978214f0f26e8afc64 (patch)
tree0ef8ccf360ddb564f7ad9335f36525945b0b7a12 /sound/soc/codecs/rk3308_codec.c
parent86f26aca49840162bfaa28742ddff00bbe143357 (diff)
downloadlwn-2ba2d17170f9e415fc31d7978214f0f26e8afc64.tar.gz
lwn-2ba2d17170f9e415fc31d7978214f0f26e8afc64.zip
ASoC: codecs: rk3308: fix building without CONFIG_OF
The newly added codec has an extraneous of_match_ptr() annotation for the ID table: sound/soc/codecs/rk3308_codec.c:956:34: error: 'rk3308_codec_of_match' defined but not used [-Werror=unused-const-variable=] 956 | static const struct of_device_id rk3308_codec_of_match[] = { Remove it to avoid introducing a warning when -Wunused-const-variable gets enabled by default: Fixes: 4ed0915f5bc4 ("ASoC: codecs: Add RK3308 internal audio codec driver") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Link: https://msgid.link/r/20240404095755.650364-1-arnd@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rk3308_codec.c')
-rw-r--r--sound/soc/codecs/rk3308_codec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/rk3308_codec.c b/sound/soc/codecs/rk3308_codec.c
index 74c3836995b1..8b51e87a1711 100644
--- a/sound/soc/codecs/rk3308_codec.c
+++ b/sound/soc/codecs/rk3308_codec.c
@@ -962,7 +962,7 @@ MODULE_DEVICE_TABLE(of, rk3308_codec_of_match);
static struct platform_driver rk3308_codec_driver = {
.driver = {
.name = "rk3308-acodec",
- .of_match_table = of_match_ptr(rk3308_codec_of_match),
+ .of_match_table = rk3308_codec_of_match,
},
.probe = rk3308_codec_platform_probe,
};