Commit 6873ee46 authored by Alexander Shiyan's avatar Alexander Shiyan Committed by Mark Brown

ASoC: fsl_ssi: Fix printing return code on clk error

Signed-off-by: default avatarAlexander Shiyan <shc_work@mail.ru>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment