summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/video/mxc/mxc_ipuv3_fb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/video/mxc/mxc_ipuv3_fb.c b/drivers/video/mxc/mxc_ipuv3_fb.c
index 3af13e6f0e46..eb9b2f24842d 100644
--- a/drivers/video/mxc/mxc_ipuv3_fb.c
+++ b/drivers/video/mxc/mxc_ipuv3_fb.c
@@ -2047,15 +2047,15 @@ static int mxcfb_ioctl(struct fb_info *fbi, unsigned int cmd, unsigned long arg)
}
}
- if (mxc_fbi->cur_prefetch == !!enable)
- break;
-
retval = mxcfb_check_var(&fbi->var, fbi);
if (retval)
break;
mxc_fbi->prefetch = !!enable;
+ if (mxc_fbi->cur_prefetch == mxc_fbi->prefetch)
+ break;
+
fbi->var.activate = (fbi->var.activate & ~FB_ACTIVATE_MASK) |
FB_ACTIVATE_NOW | FB_ACTIVATE_FORCE;
retval = mxcfb_set_par(fbi);