From: Heiko Stübner Date: Mon, 30 Apr 2012 11:17:21 +0000 (+0200) Subject: ASoC: s3c2412-i2s: Fix dai registration X-Git-Tag: upstream/snapshot3+hdmi~7307^2~12^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=06412088ce98f745405b8f65cfc51ddd6b842bbf;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git ASoC: s3c2412-i2s: Fix dai registration As s3c2412-i2s is using the s3c_i2sv2 it should call the more specialised s3c_i2sv2_register_dai instead of simply calling snd_soc_register_dai. Without this call the snd_soc_dai_ops structure isn't initialised correctly. Signed-off-by: Heiko Stuebner Signed-off-by: Mark Brown --- diff --git a/sound/soc/samsung/s3c2412-i2s.c b/sound/soc/samsung/s3c2412-i2s.c index 7218507..79fbeea 100644 --- a/sound/soc/samsung/s3c2412-i2s.c +++ b/sound/soc/samsung/s3c2412-i2s.c @@ -166,7 +166,7 @@ static struct snd_soc_dai_driver s3c2412_i2s_dai = { static __devinit int s3c2412_iis_dev_probe(struct platform_device *pdev) { - return snd_soc_register_dai(&pdev->dev, &s3c2412_i2s_dai); + return s3c_i2sv2_register_dai(&pdev->dev, -1, &s3c2412_i2s_dai); } static __devexit int s3c2412_iis_dev_remove(struct platform_device *pdev)