Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sound: omap: n810: fix init with DT boot
@ 2014-03-01 18:08 Aaro Koskinen
  2014-03-03 18:41 ` Jarkko Nikula
  0 siblings, 1 reply; 2+ messages in thread
From: Aaro Koskinen @ 2014-03-01 18:08 UTC (permalink / raw)
  To: Jarkko Nikula, Peter Ujfalusi, linux-omap, alsa-devel; +Cc: Aaro Koskinen

Since 3.14-rc1 only DT boot has been supported on N810. Make a minimal
fix to retain functionality. This file should be properly converted
to DT in longer term.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
---
 sound/soc/omap/n810.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/sound/soc/omap/n810.c b/sound/soc/omap/n810.c
index 3fde9e4..d163e18 100644
--- a/sound/soc/omap/n810.c
+++ b/sound/soc/omap/n810.c
@@ -305,7 +305,9 @@ static int __init n810_soc_init(void)
 	int err;
 	struct device *dev;
 
-	if (!(machine_is_nokia_n810() || machine_is_nokia_n810_wimax()))
+	if (!of_have_populated_dt() ||
+	    (!of_machine_is_compatible("nokia,n810") &&
+	     !of_machine_is_compatible("nokia,n810-wimax")))
 		return -ENODEV;
 
 	n810_snd_device = platform_device_alloc("soc-audio", -1);
-- 
1.8.3.3


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-03-03 18:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-01 18:08 [PATCH] sound: omap: n810: fix init with DT boot Aaro Koskinen
2014-03-03 18:41 ` Jarkko Nikula

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox