ASoC: Return proper error for omap3pandora_soc_init
authorAxel Lin <axel.lin@gmail.com>
Wed, 24 Nov 2010 07:20:48 +0000 (15:20 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 24 Nov 2010 11:22:45 +0000 (11:22 +0000)
commit5c12d20145ce30f9f8b7415d36dace5fb4dcc4f0
tree9de3796c10539e7591e898e95a720d66cdf7d24c
parent2f7dceeda4708f470fd927adb3861bd8ebbe2310
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>
sound/soc/omap/omap3pandora.c