]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ASoC: Check machine type before loading on AT91SAM9G20-EK
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 16 Feb 2009 16:04:05 +0000 (16:04 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 18 Feb 2009 11:25:22 +0000 (11:25 +0000)
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/atmel/sam9g20_wm8731.c

index be3f923d3c4371b6a13c2100a656687443065605..b7efdc8119d45d7947e5c4c169332e4d2fd93f67 100644 (file)
@@ -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
         */