diff options
-rw-r--r-- | arch/arm/mach-omap2/pm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c index 9cb5cede0f50..ab15e5c1bba5 100644 --- a/arch/arm/mach-omap2/pm.c +++ b/arch/arm/mach-omap2/pm.c | |||
@@ -176,7 +176,7 @@ static int __init omap2_set_init_voltage(char *vdd_name, char *clk_name, | |||
176 | } | 176 | } |
177 | 177 | ||
178 | voltdm = voltdm_lookup(vdd_name); | 178 | voltdm = voltdm_lookup(vdd_name); |
179 | if (IS_ERR(voltdm)) { | 179 | if (!voltdm) { |
180 | pr_err("%s: unable to get vdd pointer for vdd_%s\n", | 180 | pr_err("%s: unable to get vdd pointer for vdd_%s\n", |
181 | __func__, vdd_name); | 181 | __func__, vdd_name); |
182 | goto exit; | 182 | goto exit; |