[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210621134502.19537-1-srinivas.kandagatla@linaro.org>
Date: Mon, 21 Jun 2021 14:45:01 +0100
From: Srinivas Kandagatla <srinivas.kandagatla@...aro.org>
To: broonie@...nel.org
Cc: alsa-devel@...a-project.org, linux-kernel@...r.kernel.org,
lgirdwood@...il.com,
Srinivas Kandagatla <srinivas.kandagatla@...aro.org>,
kernel test robot <lkp@...el.com>
Subject: [PATCH 1/2] 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@...el.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@...aro.org>
---
sound/soc/codecs/wcd938x.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sound/soc/codecs/wcd938x.c b/sound/soc/codecs/wcd938x.c
index 4be61122b0b5..427f51fade37 100644
--- a/sound/soc/codecs/wcd938x.c
+++ b/sound/soc/codecs/wcd938x.c
@@ -3714,12 +3714,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,
--
2.21.0
Powered by blists - more mailing lists