aboutsummaryrefslogtreecommitdiff
path: root/sound/soc
diff options
context:
space:
mode:
authorSrinivas Kandagatla2021-06-21 14:45:01 +0100
committerMark Brown2021-06-22 12:47:12 +0100
commit8c4863c261c812a1088b0f8c6b66386d885390e1 (patch)
tree3b541cff5ff5ce1e6db89663a37a9e5bca064bd2 /sound/soc
parent439779ffd9096526e57994b118a3169c9ec57f72 (diff)
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/soc')
-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,