summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2010-07-14 18:57:31 +0800
committerMark Brown <broonie@opensource.wolfsonmicro.com>2010-07-14 20:12:18 +0100
commitc555b028f12e92c1de9cf5de0ef5886779590222 (patch)
tree5d574894c6fdda591a3eb5d10ca1a775bad6dbb7 /sound
parent637727838a5e82bc9285ab078a793eaae590bacb (diff)
downloadlinux-stable-c555b028f12e92c1de9cf5de0ef5886779590222.tar.gz
linux-stable-c555b028f12e92c1de9cf5de0ef5886779590222.tar.bz2
linux-stable-c555b028f12e92c1de9cf5de0ef5886779590222.zip
ASoC: wm8727: add a missing return in wm8727_platform_probe
otherwise the error path will always be executed. Signed-off-by: Axel Lin <axel.lin@gmail.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/wm8727.c2
1 files changed, 2 insertions, 0 deletions
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: