提交 40135ea0 编写于 作者: M Mark Brown

ASoC: Check machine type before loading on AT91SAM9G20-EK

Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 d6943541
......@@ -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
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册