diff --git a/drivers/video/msm/msm_fb.c b/drivers/video/msm/msm_fb.c index 525806ca..aa27389d 100644 --- a/drivers/video/msm/msm_fb.c +++ b/drivers/video/msm/msm_fb.c @@ -231,11 +231,7 @@ static int msmfb_start_dma(struct msmfb_info *msmfb) w = msmfb->update_info.eright - x; h = msmfb->update_info.ebottom - y; -#if defined(CONFIG_MACH_HTCLEO) - // For some reason we need to force a full-screen update to prevent - // the screen from mixing up (top +-100px missing, garbled data - // at the bottom +-100px). Maybe it has to do with the vsync we - // had to disable in mdp_lcdc? +#if defined(CONFIG_FRAMEBUFFER_CONSOLE) x = 0; y = 0; w = msmfb->xres; h = msmfb->yres; #endif @@ -629,7 +625,7 @@ int msmfb_pan_display(struct fb_var_screeninfo *var, struct fb_info *info) static void msmfb_fillrect(struct fb_info *p, const struct fb_fillrect *rect) { cfb_fillrect(p, rect); -#if !defined(CONFIG_MACH_HTCLEO) +#if !defined(CONFIG_FRAMEBUFFER_CONSOLE) msmfb_update(p, rect->dx, rect->dy, rect->dx + rect->width, rect->dy + rect->height); #endif @@ -638,7 +634,7 @@ static void msmfb_fillrect(struct fb_info *p, const struct fb_fillrect *rect) static void msmfb_copyarea(struct fb_info *p, const struct fb_copyarea *area) { cfb_copyarea(p, area); -#if !defined(CONFIG_MACH_HTCLEO) +#if !defined(CONFIG_FRAMEBUFFER_CONSOLE) msmfb_update(p, area->dx, area->dy, area->dx + area->width, area->dy + area->height); #endif @@ -647,7 +643,7 @@ static void msmfb_copyarea(struct fb_info *p, const struct fb_copyarea *area) static void msmfb_imageblit(struct fb_info *p, const struct fb_image *image) { cfb_imageblit(p, image); -#if !defined(CONFIG_MACH_HTCLEO) +#if !defined(CONFIG_FRAMEBUFFER_CONSOLE) msmfb_update(p, image->dx, image->dy, image->dx + image->width, image->dy + image->height); #endif