ASoC: imx-ssi: Check the return value from clk_prepare_enable()
Subsystems (4)
Fabio Estevam
reviewerPATCH 1/1 ASoC: imx-ssi: Check the return value from clk_prepare_enable()
From: Fabio Estevam <[email protected]>
clk_prepare_enable() may fail, so let's check its return value and propagate it in the case of error.
Signed-off-by Fabio Estevam <[email protected]>
--- sound/soc/fsl/imx-ssi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
sound/soc/fsl/imx-ssi.c +3 -1
@@ -535,7 +535,9 @@ static int imx_ssi_probe(struct platform_device *pdev) ret); goto failed_clk; } -clk_prepare_enable (ssi->clk); + ret =clk_prepare_enable (ssi->clk); +if (ret) + goto failed_clk; res =platform_get_resource (pdev,IORESOURCE_MEM ,0 ); ssi->base =devm_ioremap_resource (&pdev->dev, res);
Signature · 1 line
1.8.1.2
Quoted 4 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
clk_prepare_enable()may fail, so let's check its return value and propagate it in the case of error.
Applied, thanks.