Commit c555b028 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown

ASoC: wm8727: add a missing return in wm8727_platform_probe

otherwise the error path will always be executed.
Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Acked-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 63772783
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment