From: Axel Lin Date: Mon, 8 Nov 2010 05:24:58 +0000 (+0800) Subject: ASoC: Return proper error if snd_soc_register_dais fails in psc_i2s_of_probe X-Git-Tag: v2.6.37-rc5~11^2~2^2~37 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1ebd0061ededeb8b495360a772d0b885dd3e036e;p=platform%2Fkernel%2Flinux-3.10.git ASoC: Return proper error if snd_soc_register_dais fails in psc_i2s_of_probe Signed-off-by: Axel Lin Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- diff --git a/sound/soc/fsl/mpc5200_psc_i2s.c b/sound/soc/fsl/mpc5200_psc_i2s.c index 74ffed4..9018fa5 100644 --- a/sound/soc/fsl/mpc5200_psc_i2s.c +++ b/sound/soc/fsl/mpc5200_psc_i2s.c @@ -160,7 +160,7 @@ static int __devinit psc_i2s_of_probe(struct platform_device *op, rc = snd_soc_register_dais(&op->dev, psc_i2s_dai, ARRAY_SIZE(psc_i2s_dai)); if (rc != 0) { pr_err("Failed to register DAI\n"); - return 0; + return rc; } psc_dma = dev_get_drvdata(&op->dev);