diff options
author | Simon Glass <sjg@chromium.org> | 2016-02-21 21:08:43 -0700 |
---|---|---|
committer | Minkyu Kang <mk7.kang@samsung.com> | 2016-05-25 13:25:17 +0900 |
commit | 9c4d440e859c34994689504f1a0d028619042ef3 (patch) | |
tree | 2b63b5556f07c659353d7b5b3de0fb0211b8e750 /drivers/video | |
parent | 162fa53c8d3c2f832d791d0bb7a72fec1562fba4 (diff) | |
download | u-boot-imx-9c4d440e859c34994689504f1a0d028619042ef3.zip u-boot-imx-9c4d440e859c34994689504f1a0d028619042ef3.tar.gz u-boot-imx-9c4d440e859c34994689504f1a0d028619042ef3.tar.bz2 |
exynos: video: Drop static variables in exynos_fb.c
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>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/exynos/exynos_fb.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/video/exynos/exynos_fb.c b/drivers/video/exynos/exynos_fb.c index a3acdcc..abc6091 100644 --- a/drivers/video/exynos/exynos_fb.c +++ b/drivers/video/exynos/exynos_fb.c @@ -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)); } |