summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/video/fbdev/msm/mdss_fb.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/video/fbdev/msm/mdss_fb.c b/drivers/video/fbdev/msm/mdss_fb.c
index 58478b97b81a..31f4ef83b8b3 100644
--- a/drivers/video/fbdev/msm/mdss_fb.c
+++ b/drivers/video/fbdev/msm/mdss_fb.c
@@ -4075,8 +4075,10 @@ static int mdss_fb_set_par(struct fb_info *info)
mfd->fbi->fix.smem_len = PAGE_ALIGN(mfd->fbi->fix.line_length *
mfd->fbi->var.yres) * mfd->fb_page;
- old_format = mdss_grayscale_to_mdp_format(var->grayscale);
- if (!IS_ERR_VALUE(old_format)) {
+ old_format = mfd->panel_info->out_format;
+ mfd->panel_info->out_format =
+ mdss_grayscale_to_mdp_format(var->grayscale);
+ if (!IS_ERR_VALUE(mfd->panel_info->out_format)) {
if (old_format != mfd->panel_info->out_format)
mfd->panel_reconfig = true;
}