]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/karo/tx48/tx48.c
karo: tx48: don't call karo_fdt_get_backlight_polarity() if the display is disabled
[karo-tx-uboot.git] / board / karo / tx48 / tx48.c
index 753ce3a26595e896fba85c895b3e2525692ed8f2..0bc8d9111a44f5a0ef7b22429c0be7324bee68f8 100644 (file)
@@ -654,13 +654,14 @@ void lcd_ctrl_init(void *lcdbase)
        }
 
        karo_fdt_move_fdt();
-       lcd_bl_polarity = karo_fdt_get_backlight_polarity(working_fdt);
 
        if (video_mode == NULL) {
                debug("Disabling LCD\n");
                lcd_enabled = 0;
                return;
        }
+
+       lcd_bl_polarity = karo_fdt_get_backlight_polarity(working_fdt);
        vm = video_mode;
        if (karo_fdt_get_fb_mode(working_fdt, video_mode, &fb_mode) == 0) {
                p = &fb_mode;