ASoC: wm8727: add a missing return in wm8727_platform_probe
authorAxel Lin <[email protected]>
Wed, 14 Jul 2010 10:57:31 +0000 (18:57 +0800)
committerMark Brown <[email protected]>
Wed, 14 Jul 2010 19:12:18 +0000 (20:12 +0100)
otherwise the error path will always be executed.

Signed-off-by: Axel Lin <[email protected]>
Acked-by: Liam Girdwood <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
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: