ASoC: imx-sgtl5000: Do not enter the error path on success
authorFabio Estevam <fabio.estevam@freescale.com>
Wed, 24 Apr 2013 14:54:43 +0000 (11:54 -0300)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 12 May 2013 16:45:34 +0000 (20:45 +0400)
Return on success instead of entering the error path.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/fsl/imx-sgtl5000.c

index 9584e78858df0a7a407ce9d07b3f9f159002cc10..5a6aaa3b947a45bfaceb1313b2d2c0f03ebd6847 100644 (file)
@@ -174,6 +174,11 @@ static int imx_sgtl5000_probe(struct platform_device *pdev)
        }
 
        platform_set_drvdata(pdev, data);
+       of_node_put(ssi_np);
+       of_node_put(codec_np);
+
+       return 0;
+
 clk_fail:
        clk_put(data->codec_clk);
 fail: