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:
a1df5c2
)
ASoC: imx-sgtl5000: fix error return code in imx_sgtl5000_probe()
author
Wei Yongjun
<yongjun_wei@trendmicro.com.cn>
Tue, 16 Jul 2013 12:05:07 +0000
(20:05 +0800)
committer
Mark Brown
<broonie@linaro.org>
Tue, 16 Jul 2013 13:29:28 +0000
(14:29 +0100)
Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/fsl/imx-sgtl5000.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/fsl/imx-sgtl5000.c
b/sound/soc/fsl/imx-sgtl5000.c
index 3f726e4f88db8c2900840819e5d86ede5e9415d1..389cbfa6dca79d6100b34e64f57d6bc2514d20f8 100644
(file)
--- a/
sound/soc/fsl/imx-sgtl5000.c
+++ b/
sound/soc/fsl/imx-sgtl5000.c
@@
-129,8
+129,10
@@
static int imx_sgtl5000_probe(struct platform_device *pdev)
}
data->codec_clk = devm_clk_get(&codec_dev->dev, NULL);
- if (IS_ERR(data->codec_clk))
+ if (IS_ERR(data->codec_clk)) {
+ ret = PTR_ERR(data->codec_clk);
goto fail;
+ }
data->clk_frequency = clk_get_rate(data->codec_clk);