Commit 40135ea0 authored by Mark Brown's avatar Mark Brown
Browse files

ASoC: Check machine type before loading on AT91SAM9G20-EK

parent d6943541
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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
	 */