ASoC: wm8727: add a missing return in wm8727_platform_probe
authorAxel Lin <axel.lin@gmail.com>
Wed, 14 Jul 2010 10:57:31 +0000 (18:57 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 14 Jul 2010 19:12:18 +0000 (20:12 +0100)
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>
sound/soc/codecs/wm8727.c

index 1072621e93fdee9de08476cfcd915fed2c792999..9d1df26281361ef9ed569e0b87a39d9a934f9254 100644 (file)
@@ -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: