From: Axel Lin Date: Wed, 14 Jul 2010 10:57:31 +0000 (+0800) Subject: ASoC: wm8727: add a missing return in wm8727_platform_probe X-Git-Tag: v2.6.35-rc6~9^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c555b028f12e92c1de9cf5de0ef5886779590222;p=platform%2Fkernel%2Flinux-stable.git ASoC: wm8727: add a missing return in wm8727_platform_probe otherwise the error path will always be executed. Signed-off-by: Axel Lin Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/wm8727.c b/sound/soc/codecs/wm8727.c index 1072621..9d1df262 100644 --- a/sound/soc/codecs/wm8727.c +++ b/sound/soc/codecs/wm8727.c @@ -127,6 +127,8 @@ static __devinit int wm8727_platform_probe(struct platform_device *pdev) goto err_codec; } + return 0; + err_codec: snd_soc_unregister_codec(codec); err: