From: Wei Yongjun Date: Tue, 16 Jul 2013 12:05:07 +0000 (+0800) Subject: ASoC: imx-sgtl5000: fix error return code in imx_sgtl5000_probe() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f1269ae41f2e2846031cb361b59ebc36d5f9528a;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git ASoC: imx-sgtl5000: fix error return code in imx_sgtl5000_probe() Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun Acked-by: Shawn Guo Signed-off-by: Mark Brown --- diff --git a/sound/soc/fsl/imx-sgtl5000.c b/sound/soc/fsl/imx-sgtl5000.c index 3f726e4f88db..389cbfa6dca7 100644 --- a/sound/soc/fsl/imx-sgtl5000.c +++ b/sound/soc/fsl/imx-sgtl5000.c @@ -129,8 +129,10 @@ static int imx_sgtl5000_probe(struct platform_device *pdev) } data->codec_clk = devm_clk_get(&codec_dev->dev, NULL); - if (IS_ERR(data->codec_clk)) + if (IS_ERR(data->codec_clk)) { + ret = PTR_ERR(data->codec_clk); goto fail; + } data->clk_frequency = clk_get_rate(data->codec_clk);