ASoC: codecs: fix wm8524 build error
authorArnd Bergmann <arnd@arndb.de>
Mon, 31 Jul 2017 16:05:46 +0000 (18:05 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 1 Aug 2017 11:31:37 +0000 (12:31 +0100)
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>
sound/soc/codecs/wm8524.c

index f42ec664877cc8eb822c2ad441c664e13cede0be..e22b76d64e32331278b38667022601ead4e882f7 100644 (file)
@@ -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)
 {