diff options
author | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2021-06-21 14:45:01 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-06-22 12:47:12 +0100 |
commit | 8c4863c261c812a1088b0f8c6b66386d885390e1 (patch) | |
tree | 3b541cff5ff5ce1e6db89663a37a9e5bca064bd2 /sound/soc | |
parent | 439779ffd9096526e57994b118a3169c9ec57f72 (diff) | |
download | linux-8c4863c261c812a1088b0f8c6b66386d885390e1.tar.gz linux-8c4863c261c812a1088b0f8c6b66386d885390e1.tar.bz2 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/soc')
-rw-r--r-- | sound/soc/codecs/wcd938x.c | 2 |
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, |