ASoC: Check for supported CPUs when building s3c-i2s-v2
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 29 Apr 2009 19:28:47 +0000 (20:28 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 30 Apr 2009 12:24:34 +0000 (13:24 +0100)
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/s3c24xx/s3c-i2s-v2.c

index ab680aa..3b9201c 100644 (file)
 
 #include "s3c-i2s-v2.h"
 
+#undef S3C_IIS_V2_SUPPORTED
+
+#if defined(CONFIG_CPU_S3C2412) || defined(CONFIG_CPU_S3C2413)
+#define S3C_IIS_V2_SUPPORTED
+#endif
+
+#ifdef CONFIG_PLAT_S3C64XX
+#define S3C_IIS_V2_SUPPORTED
+#endif
+
+#ifndef S3C_IIS_V2_SUPPORTED
+#error Unsupported CPU model
+#endif
+
 #define S3C2412_I2S_DEBUG_CON 0
 
 static inline struct s3c_i2sv2_info *to_info(struct snd_soc_dai *cpu_dai)