summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-07-31 18:05:46 +0200
committerMark Brown <broonie@kernel.org>2017-08-01 12:31:37 +0100
commitbf11ecb7eebd28d70bf5aa3170c6fe7156c33c5b (patch)
tree795859a25ef4af96da0f08a28c253d7d25d648fe /sound
parent007b6a54c305688d1db7255e5c724e3d76ba5aa4 (diff)
downloadlinux-bf11ecb7eebd28d70bf5aa3170c6fe7156c33c5b.tar.gz
linux-bf11ecb7eebd28d70bf5aa3170c6fe7156c33c5b.tar.bz2
linux-bf11ecb7eebd28d70bf5aa3170c6fe7156c33c5b.zip
ASoC: codecs: fix wm8524 build error
When CONFIG_OF is disabled, we run into a build error: sound/soc/codecs/wm8524.c:257:21: error: 'wm8524_of_match' undeclared here (not in a function); did you mean 'wm8524_dai'? This removes the unnecessary #ifdef around the match table. Fixes: 007b6a54c305 ("ASoC: codecs: add wm8524 codec driver") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Mihai Serban <mihai.serban@nxp.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/wm8524.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm8524.c b/sound/soc/codecs/wm8524.c
index f42ec664877c..e22b76d64e32 100644
--- a/sound/soc/codecs/wm8524.c
+++ b/sound/soc/codecs/wm8524.c
@@ -206,13 +206,11 @@ static const struct snd_soc_codec_driver soc_codec_dev_wm8524 = {
},
};
-#ifdef CONFIG_OF
static const struct of_device_id wm8524_of_match[] = {
{ .compatible = "wlf,wm8524" },
{ /* sentinel*/ }
};
MODULE_DEVICE_TABLE(of, wm8524_of_match);
-#endif
static int wm8524_codec_probe(struct platform_device *pdev)
{