summaryrefslogtreecommitdiff
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-10-25 10:52:06 +0800
commitf45d3def9eb0aa39f10ab7a36ab74569fd3f08b6 (patch)
tree8910191120d7169e18ad925e20996c17dd25164a
parent285574ae6a71b786a19059c5fb905ae5c06ff1ef (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 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;