ASoC: fsl_ssi: Fix printing return code on clk error

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
Alexander Shiyan 2014-01-05 10:21:16 +04:00 committed by Mark Brown
parent aafa85e71a
commit 6873ee464a
1 changed files with 2 additions and 1 deletions

View File

@ -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);