OMAP3: allow to disable UART4
[pandora-kernel.git] / arch / arm / mach-omap2 / pm.c
index 0e8363a..8407dab 100644 (file)
@@ -154,7 +154,7 @@ static int __init omap2_set_init_voltage(char *vdd_name, char *clk_name,
        }
 
        voltdm = voltdm_lookup(vdd_name);
-       if (IS_ERR(voltdm)) {
+       if (!voltdm) {
                pr_err("%s: unable to get vdd pointer for vdd_%s\n",
                        __func__, vdd_name);
                goto exit;