Commit 2fc059f2 authored by Fabio Estevam's avatar Fabio Estevam Committed by Mark Brown

ASoC: imx-sgtl5000: Do not enter the error path on success

Return on success instead of entering the error path.
Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
Acked-by: default avatarShawn Guo <shawn.guo@linaro.org>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent f722406f
...@@ -174,6 +174,11 @@ static int imx_sgtl5000_probe(struct platform_device *pdev) ...@@ -174,6 +174,11 @@ static int imx_sgtl5000_probe(struct platform_device *pdev)
} }
platform_set_drvdata(pdev, data); platform_set_drvdata(pdev, data);
of_node_put(ssi_np);
of_node_put(codec_np);
return 0;
clk_fail: clk_fail:
clk_put(data->codec_clk); clk_put(data->codec_clk);
fail: fail:
......
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