mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 19:56:18 +00:00
ASoC: Check machine type before loading on AT91SAM9G20-EK
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
d694354115
commit
40135ea071
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue