Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bf11ecb7 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Mark Brown
Browse files

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: 007b6a54 ("ASoC: codecs: add wm8524 codec driver")
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Acked-by: default avatarMihai Serban <mihai.serban@nxp.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 007b6a54
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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)
{