diff mbox

omap4: fb: Adds missing display update call when panning

Message ID 1279197422-23662-1-git-send-email-mayur@ti.com (mailing list archive)
State New, archived
Headers show

Commit Message

MAYURESH JANORKAR July 15, 2010, 12:37 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c
index 4abb1d1..12d5382 100644
--- a/drivers/video/omap2/omapfb/omapfb-main.c
+++ b/drivers/video/omap2/omapfb/omapfb-main.c
@@ -1068,7 +1068,8 @@  static int omapfb_pan_display(struct fb_var_screeninfo *var,
 {
 	struct omapfb_info *ofbi = FB2OFB(fbi);
 	struct fb_var_screeninfo new_var;
-	int r;
+	int r = 0;
+	struct omap_dss_device *display = fb2display(fbi);
 
 	DBG("pan_display(%d)\n", FB2OFB(fbi)->id);
 
@@ -1086,6 +1087,11 @@  static int omapfb_pan_display(struct fb_var_screeninfo *var,
 
 	r = omapfb_apply_changes(fbi, 0);
 
+	if (display && display->driver->update &&
+		display->driver->get_update_mode(display)
+			== OMAP_DSS_UPDATE_MANUAL)
+		display->driver->update(display, 0, 0, var->xres, var->yres);
+
 	omapfb_put_mem_region(ofbi->region);
 
 	return r;