From: Mark Brown Date: Mon, 16 Feb 2009 16:04:05 +0000 (+0000) Subject: ASoC: Check machine type before loading on AT91SAM9G20-EK X-Git-Tag: v3.0~9634^2~100 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=40135ea07190316a789b2edfbf7c8131598bdf81;p=platform%2Fkernel%2Flinux-amlogic.git ASoC: Check machine type before loading on AT91SAM9G20-EK Signed-off-by: Mark Brown --- diff --git a/sound/soc/atmel/sam9g20_wm8731.c b/sound/soc/atmel/sam9g20_wm8731.c index be3f923..b7efdc8 100644 --- a/sound/soc/atmel/sam9g20_wm8731.c +++ b/sound/soc/atmel/sam9g20_wm8731.c @@ -45,6 +45,7 @@ #include #include +#include #include #include @@ -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 */