aboutsummaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorAndy Green <andy.green@linaro.org>2011-10-25 10:52:06 +0800
committerAndy Green <andy.green@linaro.org>2011-11-19 08:53:46 +0800
commitc5d9af292d20d60067554745317141841428db0d (patch)
tree7895b29004f76d63912eb94363cd1eb1918ce450 /arch/arm
parent0b9d8b33982fb037c89a207c6c008d4a4289bd42 (diff)
split out voltage errors
Signed-off-by: Andy Green <andy.green@linaro.org>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-omap2/vc.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/vc.c b/arch/arm/mach-omap2/vc.c
index 8dda04f2863..b0d2f5c09d8 100644
--- a/arch/arm/mach-omap2/vc.c
+++ b/arch/arm/mach-omap2/vc.c
@@ -374,8 +374,14 @@ void __init omap_vc_init_channel(struct voltagedomain *voltdm)
u8 on_vsel, onlp_vsel, ret_vsel, off_vsel;
u32 val;
- if (!voltdm->pmic || !voltdm->pmic->uv_to_vsel) {
- pr_err("%s: PMIC info requried to configure vc for"
+ if (!voltdm->pmic) {
+ pr_err("%s: voltdm->pmic is NULL at vdd %d init, can't init\n",
+ __func__, voltdm->name);
+ return;
+ }
+
+ if (!voltdm->pmic->uv_to_vsel) {
+ pr_err("%s: voltdm->pmic->uv_to_vsel is NULL, vc for"
"vdd_%s not populated.Hence cannot initialize vc\n",
__func__, voltdm->name);
return;