exynos_fb.c: lcd_ctrl_init(): check board before init lcd
authorPrzemyslaw Marczak <p.marczak@samsung.com>
Tue, 29 Jul 2014 12:38:04 +0000 (14:38 +0200)
committerJaehoon Chung <jh80.chung@samsung.com>
Fri, 8 Apr 2016 02:12:02 +0000 (11:12 +0900)
Change-Id: Ie8219913e8501fc2180d5d96f19844d3e08a6326
Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
drivers/video/exynos_fb.c

index 69edc3a..359cbc9 100644 (file)
@@ -21,6 +21,7 @@
 #include <asm/arch/system.h>
 #include <asm/gpio.h>
 #include <asm-generic/errno.h>
+#include <samsung/misc.h>
 
 #include "exynos_fb.h"
 
@@ -292,6 +293,10 @@ int exynos_lcd_early_init(const void *blob)
 
 void lcd_ctrl_init(void *lcdbase)
 {
+#ifdef CONFIG_OF_MULTI
+       if (!board_is_trats2())
+               return;
+#endif
        set_system_display_ctrl();
        set_lcd_clk();