]> git.sur5r.net Git - u-boot/commitdiff
exynos: video: Drop static variables in exynos_fb.c
authorSimon Glass <sjg@chromium.org>
Mon, 22 Feb 2016 04:08:43 +0000 (21:08 -0700)
committerMinkyu Kang <mk7.kang@samsung.com>
Wed, 25 May 2016 04:25:17 +0000 (13:25 +0900)
Drop these and use the existing variables instead.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
drivers/video/exynos/exynos_fb.c

index a3acdcc2d9b0dbd7e17dd1ddb944c607d3eb4754..abc6091049e150d339f2f1d830d4ff16f29bf6ca 100644 (file)
@@ -26,8 +26,6 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-static unsigned int panel_width, panel_height;
-
 struct vidinfo panel_info  = {
        /*
         * Insert a value here so that we don't end up in the BSS
@@ -281,16 +279,14 @@ void lcd_ctrl_init(void *lcdbase)
 #endif
        exynos_lcd_misc_init(&panel_info);
 
-       panel_width = panel_info.vl_width;
-       panel_height = panel_info.vl_height;
-
        exynos_lcd_init(&panel_info, (ulong)lcdbase);
 }
 
 void lcd_enable(void)
 {
        if (panel_info.logo_on) {
-               memset((void *) gd->fb_base, 0, panel_width * panel_height *
+               memset((void *)gd->fb_base, 0,
+                      panel_info.vl_width * panel_info.vl_height *
                                (NBITS(panel_info.vl_bpix) >> 3));
        }