summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Green <andy.green@linaro.org>2011-12-16 13:11:55 +0800
committerAndy Green <andy.green@linaro.org>2012-01-09 08:39:39 +0800
commit106bd54f50b7543d00bf06695b90aa4d512071cb (patch)
tree5ec207b24e8f31ed020f510dd5a9259c07b05bd5
parent781f6ef8e80ce348fb69f157e106b5369c700dad (diff)
split out voltage errors
Signed-off-by: Andy Green <andy.green@linaro.org>
-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 108fae13b32..4c68e569e7f 100644
--- a/arch/arm/mach-omap2/vc.c
+++ b/arch/arm/mach-omap2/vc.c
@@ -383,8 +383,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;