[alsa-devel] [PATCH] ASoC: fsl_ssi: Fix printing return code on clk error
Signed-off-by: Alexander Shiyan shc_work@mail.ru --- sound/soc/fsl/fsl_ssi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c index 2101fc5..3d74477a 100644 --- a/sound/soc/fsl/fsl_ssi.c +++ b/sound/soc/fsl/fsl_ssi.c @@ -1192,7 +1192,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);
On Sun, Jan 05, 2014 at 10:21:16AM +0400, Alexander Shiyan wrote:
Signed-off-by: Alexander Shiyan shc_work@mail.ru
Applied, thanks.
participants (2)
-
Alexander Shiyan
-
Mark Brown