Skip to content

Commit

Permalink
ASoC: Check machine type before loading on AT91SAM9G20-EK
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Mark Brown committed Feb 18, 2009
1 parent d694354 commit 40135ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sound/soc/atmel/sam9g20_wm8731.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down Expand Up @@ -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
*/
Expand Down

0 comments on commit 40135ea

Please sign in to comment.