ASoC: samsung: s3c2412-i2s: avoid hardcoded S3C2410_PA_IIS
authorArnd Bergmann <arnd@arndb.de>
Thu, 6 Aug 2020 18:20:44 +0000 (20:20 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 19 Aug 2020 19:15:45 +0000 (20:15 +0100)
The constant requires indirectly including a machine header file,
but it's not actually used any more since commit 87b132bc0315 ("ASoC:
samsung: s3c24{xx,12}-i2s: port to use generic dmaengine API"), so
remove it completely.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Acked-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20200806182059.2431-27-krzk@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/samsung/s3c-i2s-v2.c
sound/soc/samsung/s3c-i2s-v2.h
sound/soc/samsung/s3c2412-i2s.c

index ed21786..e948118 100644 (file)
@@ -616,8 +616,7 @@ int s3c_i2sv2_iis_calc_rate(struct s3c_i2sv2_rate_calc *info,
 EXPORT_SYMBOL_GPL(s3c_i2sv2_iis_calc_rate);
 
 int s3c_i2sv2_probe(struct snd_soc_dai *dai,
-                   struct s3c_i2sv2_info *i2s,
-                   unsigned long base)
+                   struct s3c_i2sv2_info *i2s)
 {
        struct device *dev = dai->dev;
        unsigned int iismod;
index fe42b77..8c6fc0d 100644 (file)
@@ -83,8 +83,7 @@ extern int s3c_i2sv2_iis_calc_rate(struct s3c_i2sv2_rate_calc *info,
  * @base: The base address for the registers.
  */
 extern int s3c_i2sv2_probe(struct snd_soc_dai *dai,
-                          struct s3c_i2sv2_info *i2s,
-                          unsigned long base);
+                          struct s3c_i2sv2_info *i2s);
 
 /**
  * s3c_i2sv2_cleanup - cleanup resources allocated in s3c_i2sv2_probe
index b35d828..edfa9d1 100644 (file)
@@ -49,7 +49,7 @@ static int s3c2412_i2s_probe(struct snd_soc_dai *dai)
        snd_soc_dai_init_dma_data(dai, &s3c2412_i2s_pcm_stereo_out,
                                        &s3c2412_i2s_pcm_stereo_in);
 
-       ret = s3c_i2sv2_probe(dai, &s3c2412_i2s, S3C2410_PA_IIS);
+       ret = s3c_i2sv2_probe(dai, &s3c2412_i2s);
        if (ret)
                return ret;