aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVasily Khoruzhick <anarsoul@gmail.com>2010-09-07 17:04:15 +0300
committerMark Brown <broonie@opensource.wolfsonmicro.com>2010-09-08 11:26:57 +0100
commitdedc3cf54eb746b05fef2e1ab51d3454d1b61c98 (patch)
treeddc5c3dea119ff7fb918c78f6c702b162d8e1d47
parentdf3c278eb3d6e65bd438130fb2ccc66249177b0e (diff)
downloadkernel_goldelico_gta04-dedc3cf54eb746b05fef2e1ab51d3454d1b61c98.zip
kernel_goldelico_gta04-dedc3cf54eb746b05fef2e1ab51d3454d1b61c98.tar.gz
kernel_goldelico_gta04-dedc3cf54eb746b05fef2e1ab51d3454d1b61c98.tar.bz2
ASoC: rx1950: check that machine is rx1950 in glue driver
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r--sound/soc/s3c24xx/rx1950_uda1380.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/s3c24xx/rx1950_uda1380.c b/sound/soc/s3c24xx/rx1950_uda1380.c
index 2a16113..0f6e806 100644
--- a/sound/soc/s3c24xx/rx1950_uda1380.c
+++ b/sound/soc/s3c24xx/rx1950_uda1380.c
@@ -40,6 +40,8 @@
#include <mach/regs-clock.h>
+#include <asm/mach-types.h>
+
#include "s3c-dma.h"
#include "s3c24xx-i2s.h"
#include "../codecs/uda1380.h"
@@ -274,6 +276,9 @@ static int __init rx1950_init(void)
{
int ret;
+ if (!machine_is_rx1950())
+ return -ENODEV;
+
/* configure some gpios */
ret = gpio_request(S3C2410_GPA(1), "speaker-power");
if (ret)