projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07a9483
)
ASoC: imx-ssi: Check the return value from clk_prepare_enable()
author
Fabio Estevam
<fabio.estevam@freescale.com>
Wed, 4 Dec 2013 22:27:44 +0000
(20:27 -0200)
committer
Mark Brown
<broonie@linaro.org>
Thu, 5 Dec 2013 00:01:18 +0000
(
00:01
+0000)
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>
sound/soc/fsl/imx-ssi.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/fsl/imx-ssi.c
b/sound/soc/fsl/imx-ssi.c
index 6336757e967ac6009086a4f07173170967a41481..df552fa1aa65f13faee928c63d2a8b8bf6c9eae4 100644
(file)
--- 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)
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);