From 8a44764afbbf588d01d6af0f8ade1e5c46e7799a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lothar=20Wa=C3=9Fmann?= Date: Fri, 9 Jan 2015 11:49:50 +0100 Subject: [PATCH] karo: tx48: don't call karo_fdt_get_backlight_polarity() if the display is disabled --- board/karo/tx48/tx48.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/board/karo/tx48/tx48.c b/board/karo/tx48/tx48.c index 753ce3a265..0bc8d9111a 100644 --- a/board/karo/tx48/tx48.c +++ b/board/karo/tx48/tx48.c @@ -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; -- 2.39.2