提交 6873ee46 编写于 作者: A Alexander Shiyan 提交者: Mark Brown

ASoC: fsl_ssi: Fix printing return code on clk error

Signed-off-by: NAlexander Shiyan <shc_work@mail.ru>
Signed-off-by: NMark Brown <broonie@linaro.org>
上级 aafa85e7
......@@ -1176,7 +1176,8 @@ static int fsl_ssi_probe(struct platform_device *pdev)
*/
ssi_private->baudclk = devm_clk_get(&pdev->dev, "baud");
if (IS_ERR(ssi_private->baudclk))
dev_warn(&pdev->dev, "could not get baud clock: %d\n", ret);
dev_warn(&pdev->dev, "could not get baud clock: %d\n",
PTR_ERR(ssi_private->baudclk));
else
clk_prepare_enable(ssi_private->baudclk);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册