summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2014-01-05 10:21:16 +0400
committerMark Brown <broonie@linaro.org>2014-01-06 13:19:56 +0000
commit6873ee464a9fd23f0b7c2ab38e4ab8cea02cb50d (patch)
tree55d3797d6582d7b6d796019b34e28e83ee1e9855 /sound
parentaafa85e71a75fdea9076c5e0f7fe09e12568c9a4 (diff)
downloadop-kernel-dev-6873ee464a9fd23f0b7c2ab38e4ab8cea02cb50d.zip
op-kernel-dev-6873ee464a9fd23f0b7c2ab38e4ab8cea02cb50d.tar.gz
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 b2ebaf8..6e3d38a 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);
OpenPOWER on IntegriCloud