From: Mark Brown Date: Wed, 29 Apr 2009 19:28:47 +0000 (+0100) Subject: ASoC: Check for supported CPUs when building s3c-i2s-v2 X-Git-Tag: v2.6.31-rc5~1^2~13^2~29^2~73 X-Git-Url: http://pileus.org/git/?a=commitdiff_plain;h=8a0f62b842e2f189e36d9f4c575ee15da9c605ff;p=~andy%2Flinux ASoC: Check for supported CPUs when building s3c-i2s-v2 Signed-off-by: Mark Brown --- diff --git a/sound/soc/s3c24xx/s3c-i2s-v2.c b/sound/soc/s3c24xx/s3c-i2s-v2.c index ab680aac3fc..3b9201cfe43 100644 --- a/sound/soc/s3c24xx/s3c-i2s-v2.c +++ b/sound/soc/s3c24xx/s3c-i2s-v2.c @@ -37,6 +37,20 @@ #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)