summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>2021-06-21 15:45:01 +0200
committerMark Brown <broonie@kernel.org>2021-06-22 13:47:12 +0200
commit8c4863c261c812a1088b0f8c6b66386d885390e1 (patch)
tree3b541cff5ff5ce1e6db89663a37a9e5bca064bd2 /sound
parentMerge series "ASoC: fsl: Use devm_platform_get_and_ioremap_resource()" from Y... (diff)
downloadlinux-8c4863c261c812a1088b0f8c6b66386d885390e1.tar.xz
linux-8c4863c261c812a1088b0f8c6b66386d885390e1.zip
ASoC: codecs: wcd938x: fix unused variable warning
This patch fixes below warning: unused variable wcd938x_dt_match by placing device match table under CONFIG_OF Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Link: https://lore.kernel.org/r/20210621134502.19537-1-srinivas.kandagatla@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/wcd938x.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/wcd938x.c b/sound/soc/codecs/wcd938x.c
index cb22fdf812f4..aac854e3ba9b 100644
--- a/sound/soc/codecs/wcd938x.c
+++ b/sound/soc/codecs/wcd938x.c
@@ -3713,12 +3713,14 @@ static int wcd938x_remove(struct platform_device *pdev)
return 0;
}
+#if defined(CONFIG_OF)
static const struct of_device_id wcd938x_dt_match[] = {
{ .compatible = "qcom,wcd9380-codec" },
{ .compatible = "qcom,wcd9385-codec" },
{}
};
MODULE_DEVICE_TABLE(of, wcd938x_dt_match);
+#endif
static struct platform_driver wcd938x_codec_driver = {
.probe = wcd938x_probe,