ARM: tegra: fix regulator_get() return value check
[linux-3.10.git] / arch / arm / mach-tegra / panel-s-1080p-5.c
index 952abaa..7a2ed0c 100644 (file)
@@ -467,7 +467,7 @@ static int dsi_s_1080p_5_reg_get(void)
                return 0;
 
        vdd_lcd_s_1v8 = regulator_get(NULL, "vdd_lcd_1v8_s");
-       if (IS_ERR_OR_NULL(vdd_lcd_s_1v8)) {
+       if (IS_ERR(vdd_lcd_s_1v8)) {
                pr_err("vdd_lcd_1v8_s regulator get failed\n");
                err = PTR_ERR(vdd_lcd_s_1v8);
                vdd_lcd_s_1v8 = NULL;
@@ -475,7 +475,7 @@ static int dsi_s_1080p_5_reg_get(void)
        }
 
        vdd_sys_bl_3v7 = regulator_get(NULL, "vdd_sys_bl");
-       if (IS_ERR_OR_NULL(vdd_sys_bl_3v7)) {
+       if (IS_ERR(vdd_sys_bl_3v7)) {
                pr_err("vdd_sys_bl regulator get failed\n");
                err = PTR_ERR(vdd_sys_bl_3v7);
                vdd_sys_bl_3v7 = NULL;