* [PATCH] ASoC: pcm1792a: Fix build with !OF
@ 2013-08-05 17:22 Mark Brown
0 siblings, 0 replies; only message in thread
From: Mark Brown @ 2013-08-05 17:22 UTC (permalink / raw)
To: Michael Trimarchi, Liam Girdwood; +Cc: alsa-devel, Mark Brown
From: Mark Brown <broonie@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
---
sound/soc/codecs/pcm1792a.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/sound/soc/codecs/pcm1792a.c b/sound/soc/codecs/pcm1792a.c
index 3f83bf9..72cf835 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,
--
1.8.4.rc0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-08-05 17:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-05 17:22 [PATCH] ASoC: pcm1792a: Fix build with !OF Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).