aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/pcm1792a.c
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-08-05 13:20:53 -0400
committerMark Brown <broonie@linaro.org>2013-08-05 13:20:53 -0400
commit55af2d23c6c9caf7da6c9a55bbea83dccbc1af2b (patch)
tree7ff069fd79156a1793c32de42bbe0926bb5a03c2 /sound/soc/codecs/pcm1792a.c
parent13b02fa0dbb1311d08dfacd897a6ff41232d7cfb (diff)
ASoC: pcm1792a: Fix build with !OF
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs/pcm1792a.c')
-rw-r--r--sound/soc/codecs/pcm1792a.c4
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 = {
169 .ops = &pcm1792a_dai_ops, 169 .ops = &pcm1792a_dai_ops,
170}; 170};
171 171
172#ifdef CONFIG_OF
173static const struct of_device_id pcm1792a_of_match[] = { 172static const struct of_device_id pcm1792a_of_match[] = {
174 { .compatible = "ti,pcm1792a", }, 173 { .compatible = "ti,pcm1792a", },
175 { } 174 { }
176}; 175};
177MODULE_DEVICE_TABLE(of, pcm1792a_of_match); 176MODULE_DEVICE_TABLE(of, pcm1792a_of_match);
178#endif
179 177
180static const struct regmap_config pcm1792a_regmap = { 178static const struct regmap_config pcm1792a_regmap = {
181 .reg_bits = 8, 179 .reg_bits = 8,
@@ -231,7 +229,7 @@ static struct spi_driver pcm1792a_codec_driver = {
231 .driver = { 229 .driver = {
232 .name = "pcm1792a", 230 .name = "pcm1792a",
233 .owner = THIS_MODULE, 231 .owner = THIS_MODULE,
234 .of_match_table = pcm1792a_of_match, 232 .of_match_table = of_match_ptr(pcm1792a_of_match),
235 }, 233 },
236 .id_table = pcm1792a_spi_ids, 234 .id_table = pcm1792a_spi_ids,
237 .probe = pcm1792a_spi_probe, 235 .probe = pcm1792a_spi_probe,