diff options
author | Mark Brown <broonie@linaro.org> | 2013-08-05 21:20:53 +0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-08-05 21:20:53 +0400 |
commit | 55af2d23c6c9caf7da6c9a55bbea83dccbc1af2b (patch) | |
tree | 7ff069fd79156a1793c32de42bbe0926bb5a03c2 /sound | |
parent | 13b02fa0dbb1311d08dfacd897a6ff41232d7cfb (diff) | |
download | linux-55af2d23c6c9caf7da6c9a55bbea83dccbc1af2b.tar.xz |
ASoC: pcm1792a: Fix build with !OF
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/pcm1792a.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/codecs/pcm1792a.c b/sound/soc/codecs/pcm1792a.c index 3f83bf9895d4..72cf8353e812 100644 --- a/sound/soc/codecs/pcm1792a.c +++ b/sound/soc/codecs/pcm1792a.c @@ -169,13 +169,11 @@ static struct snd_soc_dai_driver pcm1792a_dai = { .ops = &pcm1792a_dai_ops, }; -#ifdef CONFIG_OF static const struct of_device_id pcm1792a_of_match[] = { { .compatible = "ti,pcm1792a", }, { } }; MODULE_DEVICE_TABLE(of, pcm1792a_of_match); -#endif static const struct regmap_config pcm1792a_regmap = { .reg_bits = 8, @@ -231,7 +229,7 @@ static struct spi_driver pcm1792a_codec_driver = { .driver = { .name = "pcm1792a", .owner = THIS_MODULE, - .of_match_table = pcm1792a_of_match, + .of_match_table = of_match_ptr(pcm1792a_of_match), }, .id_table = pcm1792a_spi_ids, .probe = pcm1792a_spi_probe, |