diff options
author | Axel Lin | 2010-11-24 08:20:48 +0100 |
---|---|---|
committer | Mark Brown | 2010-11-24 12:22:45 +0100 |
commit | 5c12d20145ce30f9f8b7415d36dace5fb4dcc4f0 (patch) | |
tree | 9de3796c10539e7591e898e95a720d66cdf7d24c /sound/soc | |
parent | ASoC: wm8961 - clear WM8961_MCLKDIV bit for freq <= 16500000 (diff) | |
download | kernel-qcow2-linux-5c12d20145ce30f9f8b7415d36dace5fb4dcc4f0.tar.gz kernel-qcow2-linux-5c12d20145ce30f9f8b7415d36dace5fb4dcc4f0.tar.xz kernel-qcow2-linux-5c12d20145ce30f9f8b7415d36dace5fb4dcc4f0.zip |
ASoC: Return proper error for omap3pandora_soc_init
Return PTR_ERR(omap3pandora_dac_reg) instead of 0 if regulator_get failed.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/omap/omap3pandora.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/omap/omap3pandora.c b/sound/soc/omap/omap3pandora.c index dbd9d96b5f92..4ee33ce2cb98 100644 --- a/sound/soc/omap/omap3pandora.c +++ b/sound/soc/omap/omap3pandora.c @@ -306,6 +306,7 @@ static int __init omap3pandora_soc_init(void) pr_err(PREFIX "Failed to get DAC regulator from %s: %ld\n", dev_name(&omap3pandora_snd_device->dev), PTR_ERR(omap3pandora_dac_reg)); + ret = PTR_ERR(omap3pandora_dac_reg); goto fail3; } |