diff options
-rw-r--r-- | arch/arm/mach-omap2/vc.c | 10 |
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; |