[PATCH] ASoC: fsl_ssi: Fix printing return code on clk error

Subsystems: freescale soc sound drivers, sound, sound - soc layer / dynamic audio power management (asoc), the rest

STALE4602d

2 messages, 2 authors, 2014-01-06 · open the first message on its own page

[PATCH] ASoC: fsl_ssi: Fix printing return code on clk error

From: Alexander Shiyan <hidden>
Date: 2014-01-05 06:30:05

Signed-off-by: Alexander Shiyan <redacted>
---
 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);
 
-- 
1.8.3.2

Re: [PATCH] ASoC: fsl_ssi: Fix printing return code on clk error

From: Mark Brown <broonie@kernel.org>
Date: 2014-01-06 13:53:18

On Sun, Jan 05, 2014 at 10:21:16AM +0400, Alexander Shiyan wrote:
Signed-off-by: Alexander Shiyan <redacted>
Applied, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help