summaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2009-02-16 17:04:05 +0100
committerMark Brown <broonie@opensource.wolfsonmicro.com>2009-02-18 12:25:22 +0100
commit40135ea07190316a789b2edfbf7c8131598bdf81 (patch)
tree835fa39ee899204cf2f64245ad0bc0fbe2bc76a3 /sound/soc
parentASoC: Improve diagnostics for AT91SAM9G20-EK probe (diff)
downloadlinux-40135ea07190316a789b2edfbf7c8131598bdf81.tar.xz
linux-40135ea07190316a789b2edfbf7c8131598bdf81.zip
ASoC: Check machine type before loading on AT91SAM9G20-EK
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/atmel/sam9g20_wm8731.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/atmel/sam9g20_wm8731.c b/sound/soc/atmel/sam9g20_wm8731.c
index be3f923d3c43..b7efdc8119d4 100644
--- a/sound/soc/atmel/sam9g20_wm8731.c
+++ b/sound/soc/atmel/sam9g20_wm8731.c
@@ -45,6 +45,7 @@
#include <sound/soc.h>
#include <sound/soc-dapm.h>
+#include <asm/mach-types.h>
#include <mach/hardware.h>
#include <mach/gpio.h>
@@ -268,6 +269,9 @@ static int __init at91sam9g20ek_init(void)
struct ssc_device *ssc = NULL;
int ret;
+ if (!machine_is_at91sam9g20ek())
+ return -ENODEV;
+
/*
* Request SSC device
*/