From: Alexander Shiyan Date: Sun, 5 Jan 2014 06:21:16 +0000 (+0400) Subject: ASoC: fsl_ssi: Fix printing return code on clk error X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6873ee464a9fd23f0b7c2ab38e4ab8cea02cb50d;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ASoC: fsl_ssi: Fix printing return code on clk error Signed-off-by: Alexander Shiyan Signed-off-by: Mark Brown --- diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c index b2ebaf811599..6e3d38a85280 100644 --- a/sound/soc/fsl/fsl_ssi.c +++ b/sound/soc/fsl/fsl_ssi.c @@ -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);