MLK-14655-5 video: mxsfb: remove ofb var clear when open ofb
authorFancy Fang <chen.fang@nxp.com>
Tue, 11 Apr 2017 02:05:35 +0000 (10:05 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:21:53 +0000 (15:21 -0500)
Clear the variable screeninfo structure when the overlay
fb is opened has the side effect of deleting timings info
of overlay fb.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit 9fd7656d75de224d3e825930cd3f894408fbad40)

drivers/video/fbdev/mxsfb.c

index b23b78e..e3e455e 100644 (file)
@@ -1701,8 +1701,6 @@ static int overlayfb_open(struct fb_info *info, int user)
        struct mxsfb_info  *fbi = ofb->fbi;
 
        if (atomic_inc_return(&ofb->usage) == 1) {
-               memset((void*)&info->var, 0x0, sizeof(info->var));
-
                ofb->ol_fb->var.xres            = fbi->fb_info->var.xres;
                ofb->ol_fb->var.yres            = fbi->fb_info->var.yres;
                ofb->ol_fb->var.xres_virtual    = fbi->fb_info->var.xres_virtual;