diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2013-12-04 17:27:44 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-12-04 19:01:18 -0500 |
commit | 24f4bd57a7b24d10e52a3807f88adec79824e5d8 (patch) | |
tree | 6381a2fd2fd9fca4cda7530ba1f2f48e97767578 /sound/soc/fsl/imx-ssi.c | |
parent | 07a9483aaca5d3b5de8ee824ee576321d3f8b4c6 (diff) |
ASoC: imx-ssi: Check the return value from clk_prepare_enable()
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 <fabio.estevam@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/fsl/imx-ssi.c')
-rw-r--r-- | sound/soc/fsl/imx-ssi.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/fsl/imx-ssi.c b/sound/soc/fsl/imx-ssi.c index 6336757e967a..df552fa1aa65 100644 --- a/sound/soc/fsl/imx-ssi.c +++ b/sound/soc/fsl/imx-ssi.c | |||
@@ -535,7 +535,9 @@ static int imx_ssi_probe(struct platform_device *pdev) | |||
535 | ret); | 535 | ret); |
536 | goto failed_clk; | 536 | goto failed_clk; |
537 | } | 537 | } |
538 | clk_prepare_enable(ssi->clk); | 538 | ret = clk_prepare_enable(ssi->clk); |
539 | if (ret) | ||
540 | goto failed_clk; | ||
539 | 541 | ||
540 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 542 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
541 | ssi->base = devm_ioremap_resource(&pdev->dev, res); | 543 | ssi->base = devm_ioremap_resource(&pdev->dev, res); |