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)
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;