Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f1269ae4 authored by Wei Yongjun's avatar Wei Yongjun Committed by Mark Brown
Browse files

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: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: default avatarShawn Guo <shawn.guo@linaro.org>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent a1df5c2b
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -129,8 +129,10 @@ static int imx_sgtl5000_probe(struct platform_device *pdev)
	}
	}


	data->codec_clk = devm_clk_get(&codec_dev->dev, NULL);
	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;
		goto fail;
	}


	data->clk_frequency = clk_get_rate(data->codec_clk);
	data->clk_frequency = clk_get_rate(data->codec_clk);