diff options
Diffstat (limited to 'arch/arm/mach-omap2/pm.c')
-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 abefbc4d8e0b..1e40afe7ed3c 100644 --- a/arch/arm/mach-omap2/pm.c +++ b/arch/arm/mach-omap2/pm.c | |||
@@ -177,7 +177,7 @@ static int __init omap2_set_init_voltage(char *vdd_name, char *clk_name, | |||
177 | } | 177 | } |
178 | 178 | ||
179 | voltdm = voltdm_lookup(vdd_name); | 179 | voltdm = voltdm_lookup(vdd_name); |
180 | if (IS_ERR(voltdm)) { | 180 | if (!voltdm) { |
181 | pr_err("%s: unable to get vdd pointer for vdd_%s\n", | 181 | pr_err("%s: unable to get vdd pointer for vdd_%s\n", |
182 | __func__, vdd_name); | 182 | __func__, vdd_name); |
183 | goto exit; | 183 | goto exit; |