提交 d387dd08 编写于 作者: D Dan Carpenter 提交者: Mark Brown

ASoC: fsl_asrc: fix an error code in fsl_asrc_probe()

There is a cut and paste bug so it returns success instead of the error
code.
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NMark Brown <broonie@linaro.org>
上级 d526416c
......@@ -826,7 +826,7 @@ static int fsl_asrc_probe(struct platform_device *pdev)
asrc_priv->mem_clk = devm_clk_get(&pdev->dev, "mem");
if (IS_ERR(asrc_priv->mem_clk)) {
dev_err(&pdev->dev, "failed to get mem clock\n");
return PTR_ERR(asrc_priv->ipg_clk);
return PTR_ERR(asrc_priv->mem_clk);
}
asrc_priv->ipg_clk = devm_clk_get(&pdev->dev, "ipg");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册