[alsa-devel] [PATCH] ASoC: mx27vis-aic32x4: Make sure we are running on the correct machine
Fabio Estevam
festevam at gmail.com
Sun Mar 11 15:53:54 CET 2012
Only register mx27vis-aic32x4 if we are running on a imx27_visstrim_m10.
Signed-off-by: Fabio Estevam <fabio.estevam at freescale.com>
---
sound/soc/imx/mx27vis-aic32x4.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/sound/soc/imx/mx27vis-aic32x4.c b/sound/soc/imx/mx27vis-aic32x4.c
index 976f857..c982bc8 100644
--- a/sound/soc/imx/mx27vis-aic32x4.c
+++ b/sound/soc/imx/mx27vis-aic32x4.c
@@ -194,6 +194,9 @@ static int __init mx27vis_aic32x4_init(void)
{
int ret;
+ if (!machine_is_imx27_visstrim_m10())
+ return 0;
+
mx27vis_aic32x4_snd_device = platform_device_alloc("soc-audio", -1);
if (!mx27vis_aic32x4_snd_device)
return -ENOMEM;
--
1.7.1
More information about the Alsa-devel
mailing list