summaryrefslogtreecommitdiff
path: root/drivers/video
diff options
context:
space:
mode:
authorSandor Yu <R01008@freescale.com>2015-07-07 18:41:17 +0800
committerNitin Garg <nitin.garg@freescale.com>2015-09-17 09:23:56 -0500
commit9abcf322e5cd168cd9569d443a1c51d6cf3740f0 (patch)
tree82013d2bb9b9ce891200d15cbdf92393560533a0 /drivers/video
parent74232aa068764d70d7b3435c710476eaf8cf3b9b (diff)
MLK-11224 hdmi: Fix fbi var overwrite issue
When hdmi driver rebuild a new modelist, the fbi var may overwrited by fbcon. Reinitialize fbi var when video mode same as previous to fix this issue. Signed-off-by: Sandor Yu <R01008@freescale.com>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/mxc/mxc_hdmi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/mxc/mxc_hdmi.c b/drivers/video/mxc/mxc_hdmi.c
index 2706df1e8be9..7c636b72c9cc 100644
--- a/drivers/video/mxc/mxc_hdmi.c
+++ b/drivers/video/mxc/mxc_hdmi.c
@@ -1902,6 +1902,7 @@ static void mxc_hdmi_set_mode(struct mxc_hdmi *hdmi)
"%s: Video mode same as previous\n", __func__);
/* update fbi mode in case modelist is updated */
hdmi->fbi->mode = (struct fb_videomode *)mode;
+ fb_videomode_to_var(&hdmi->fbi->var, mode);
/* update hdmi setting in case EDID data updated */
mxc_hdmi_setup(hdmi, 0);
} else {