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-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c555b028f12e92c1de9cf5de0ef5886779590222;p=linux-beck.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 1072621e93fd..9d1df2628136 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: