Skip to content

Commit bf11ecb

Browse files
arndbbroonie
authored andcommitted
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: 007b6a5 ("ASoC: codecs: add wm8524 codec driver") Signed-off-by: Arnd Bergmann <[email protected]> Acked-by: Mihai Serban <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 007b6a5 commit bf11ecb

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

sound/soc/codecs/wm8524.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,13 +206,11 @@ static const struct snd_soc_codec_driver soc_codec_dev_wm8524 = {
206206
},
207207
};
208208

209-
#ifdef CONFIG_OF
210209
static const struct of_device_id wm8524_of_match[] = {
211210
{ .compatible = "wlf,wm8524" },
212211
{ /* sentinel*/ }
213212
};
214213
MODULE_DEVICE_TABLE(of, wm8524_of_match);
215-
#endif
216214

217215
static int wm8524_codec_probe(struct platform_device *pdev)
218216
{

0 commit comments

Comments
 (0)