ASoC: fix new build warning in fsl_ssi
Subsystems (3)
Commit 6873ee464a9f "ASoC: fsl_ssi: Fix printing return code on clk error" changed a warning message but got the format string wrong, resulting in a warning "sound/soc/fsl/fsl_ssi.c:1196:6: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=]".
Signed-off-by Arnd Bergmann <[email protected]>
---
Please apply or fold into the original patch, whichever works for you.
sound/soc/fsl/fsl_ssi.c +1 -1
@@ -1192,7 +1192,7 @@ 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" , +dev_warn (&pdev->dev,"could not get baud clock: %ld\n" ,PTR_ERR (ssi_private->baudclk));else clk_prepare_enable (ssi_private->baudclk);
Mark Brown
maintainerQuoted 4 lines · Arnd Bergmann
Commit
6873ee464a9f"ASoC:fsl_ssi: Fix printing return code on clk error" changed a warning message but got the format string wrong, resulting in a warning "sound/soc/fsl/fsl_ssi.c:1196:6: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=]".
Fabio sent a fix for this which has already been applied.