Эх сурвалжийг харах

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>
Alexander Shiyan 11 жил өмнө
parent
commit
6873ee464a

+ 2 - 1
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");
 		ssi_private->baudclk = devm_clk_get(&pdev->dev, "baud");
 		if (IS_ERR(ssi_private->baudclk))
 		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
 		else
 			clk_prepare_enable(ssi_private->baudclk);
 			clk_prepare_enable(ssi_private->baudclk);