summaryrefslogtreecommitdiffstats
path: root/sound/soc/atmel
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-09-09 10:15:37 +0800
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-09-09 09:42:00 -0700
commit694741471b8df3734e01ecae7650be60ec111c2c (patch)
tree53c3a7e5d87d1e79740626ea551567421d8a4fbc /sound/soc/atmel
parent283e42e0114aba331b0055839f6277a4a7cfbc64 (diff)
downloadblackbird-op-linux-694741471b8df3734e01ecae7650be60ec111c2c.tar.gz
blackbird-op-linux-694741471b8df3734e01ecae7650be60ec111c2c.zip
ASoC: playpaq_wm8510: Return proper error if clk_get fails
Return proper error instead of 0 if clk_get fails. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/atmel')
-rw-r--r--sound/soc/atmel/playpaq_wm8510.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/soc/atmel/playpaq_wm8510.c b/sound/soc/atmel/playpaq_wm8510.c
index 1aac2f4dbcf6..2909bfaed265 100644
--- a/sound/soc/atmel/playpaq_wm8510.c
+++ b/sound/soc/atmel/playpaq_wm8510.c
@@ -383,14 +383,17 @@ static int __init playpaq_asoc_init(void)
_gclk0 = clk_get(NULL, "gclk0");
if (IS_ERR(_gclk0)) {
_gclk0 = NULL;
+ ret = PTR_ERR(_gclk0);
goto err_gclk0;
}
_pll0 = clk_get(NULL, "pll0");
if (IS_ERR(_pll0)) {
_pll0 = NULL;
+ ret = PTR_ERR(_pll0);
goto err_pll0;
}
- if (clk_set_parent(_gclk0, _pll0)) {
+ ret = clk_set_parent(_gclk0, _pll0);
+ if (ret) {
pr_warning("snd-soc-playpaq: "
"Failed to set PLL0 as parent for DAC clock\n");
goto err_set_clk;
OpenPOWER on IntegriCloud