浏览代码

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>
Axel Lin 15 年之前
父节点
当前提交
c555b028f1
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      sound/soc/codecs/wm8727.c

+ 2 - 0
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: