summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2014-01-05 07:21:16 +0100
committerMark Brown <broonie@linaro.org>2014-01-06 14:19:56 +0100
commit6873ee464a9fd23f0b7c2ab38e4ab8cea02cb50d (patch)
tree55d3797d6582d7b6d796019b34e28e83ee1e9855 /sound
parentASoC: fsl_ssi: Add DAI master mode support for SSI on i.MX series (diff)
downloadlinux-6873ee464a9fd23f0b7c2ab38e4ab8cea02cb50d.tar.xz
linux-6873ee464a9fd23f0b7c2ab38e4ab8cea02cb50d.zip
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>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/fsl/fsl_ssi.c3
1 files changed, 2 insertions, 1 deletions
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);