Skip to contentSkip to conversation

ASoC: pcm1792a: Fix build with !OF

PATCH New Mark Brown 1 participant 1 message Aug 5, 2013

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author maintainer
#0 lore raw

PATCH 1/1 ASoC: pcm1792a: Fix build with !OF

From: Mark Brown <[email protected]>

---
 sound/soc/codecs/pcm1792a.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
sound/soc/codecs/pcm1792a.c +1 -3
index 3f83bf9..72cf835 100644
@@ -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,
Signature · 1 line
1.8.4.rc0