All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix compilation error on S3C2440
@ 2013-01-28 17:07 Alexey Galakhov
  2013-01-29  6:06 ` Kukjin Kim
  0 siblings, 1 reply; 6+ messages in thread
From: Alexey Galakhov @ 2013-01-28 17:07 UTC (permalink / raw)
  To: linux-samsung-soc; +Cc: Alexey Galakhov

There was a compilation error introduced on Dec 7, 2012
by commit a08485d8fdf6f67ca5f173b68d8f873c574745f2.

Combination of CONFIG_CPU_S3C2440 and CONFIG_SND_S3C24XX_I2S
caused the following:
sound/soc/samsung/s3c24xx-i2s.c: In function 's3c24xx_iis_dev_probe':
sound/soc/samsung/s3c24xx-i2s.c:472:2: error: implicit declaration of
function 's3c_i2sv2_register_dai' [-Werror=implicit-function-declaration]
sound/soc/samsung/s3c24xx-i2s.c:472:48: error: 's3c2412_i2s_dai'
undeclared (first use in this function)

This patch fixes the problem and makes S3C2440 I2S usable again.

Signed-off-by: Alexey Galakhov <agalakhov@gmail.com>
---
 sound/soc/samsung/s3c24xx-i2s.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/samsung/s3c24xx-i2s.c b/sound/soc/samsung/s3c24xx-i2s.c
index ee10e87..13f6dd1 100644
--- a/sound/soc/samsung/s3c24xx-i2s.c
+++ b/sound/soc/samsung/s3c24xx-i2s.c
@@ -469,7 +469,7 @@ static int s3c24xx_iis_dev_probe(struct platform_device *pdev)
 {
 	int ret = 0;
 
-	ret = s3c_i2sv2_register_dai(&pdev->dev, -1, &s3c2412_i2s_dai);
+	ret = snd_soc_register_dai(&pdev->dev, &s3c24xx_i2s_dai);
 	if (ret) {
 		pr_err("failed to register the dai\n");
 		return ret;
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-01-31  6:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-28 17:07 [PATCH] Fix compilation error on S3C2440 Alexey Galakhov
2013-01-29  6:06 ` Kukjin Kim
2013-01-30  2:18   ` Mark Brown
2013-01-30  9:35     ` Alexey Galakhov
2013-01-31  6:49       ` Mark Brown
2013-01-30  9:48     ` Alexey Galakhov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.