From 1a5e6d4154c7707497a2d11f204163ec4f786455 Mon Sep 17 00:00:00 2001 From: Mark Brown Date: Mon, 16 Feb 2009 16:04:05 +0000 Subject: [PATCH] --- yaml --- r: 132845 b: refs/heads/master c: 40135ea07190316a789b2edfbf7c8131598bdf81 h: refs/heads/master i: 132843: cd124672e4c7b47e662bf55c665a25a99bcbab4b v: v3 --- [refs] | 2 +- trunk/sound/soc/atmel/sam9g20_wm8731.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 6998094bfe25..ccbdd08669b6 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: d6943541158985030108e4a0a483cdadc3c80ee1 +refs/heads/master: 40135ea07190316a789b2edfbf7c8131598bdf81 diff --git a/trunk/sound/soc/atmel/sam9g20_wm8731.c b/trunk/sound/soc/atmel/sam9g20_wm8731.c index be3f923d3c43..b7efdc8119d4 100644 --- a/trunk/sound/soc/atmel/sam9g20_wm8731.c +++ b/trunk/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 */