Commit 55af2d23 authored by Mark Brown's avatar Mark Brown

ASoC: pcm1792a: Fix build with !OF

Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 13b02fa0
...@@ -169,13 +169,11 @@ static struct snd_soc_dai_driver pcm1792a_dai = { ...@@ -169,13 +169,11 @@ static struct snd_soc_dai_driver pcm1792a_dai = {
.ops = &pcm1792a_dai_ops, .ops = &pcm1792a_dai_ops,
}; };
#ifdef CONFIG_OF
static const struct of_device_id pcm1792a_of_match[] = { static const struct of_device_id pcm1792a_of_match[] = {
{ .compatible = "ti,pcm1792a", }, { .compatible = "ti,pcm1792a", },
{ } { }
}; };
MODULE_DEVICE_TABLE(of, pcm1792a_of_match); MODULE_DEVICE_TABLE(of, pcm1792a_of_match);
#endif
static const struct regmap_config pcm1792a_regmap = { static const struct regmap_config pcm1792a_regmap = {
.reg_bits = 8, .reg_bits = 8,
...@@ -231,7 +229,7 @@ static struct spi_driver pcm1792a_codec_driver = { ...@@ -231,7 +229,7 @@ static struct spi_driver pcm1792a_codec_driver = {
.driver = { .driver = {
.name = "pcm1792a", .name = "pcm1792a",
.owner = THIS_MODULE, .owner = THIS_MODULE,
.of_match_table = pcm1792a_of_match, .of_match_table = of_match_ptr(pcm1792a_of_match),
}, },
.id_table = pcm1792a_spi_ids, .id_table = pcm1792a_spi_ids,
.probe = pcm1792a_spi_probe, .probe = pcm1792a_spi_probe,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment