Hello,

This is a one liner patch to fix the framebuffer total size reported by
the glamo-fb driver.

The size is properly fixed by the glamofb_probe() function to begin
with.

Then each time a user issues an ioctl FBIOPUT_VSCREENINFO,
glamofb_set_par() sets the size to a bogus value.

I just fixed glamofb_set_par().

Cheers,

Dodji.

-- 
OpenedHand Ltd.
Unit R, Homesdale Business Center / 216 - 218 Homesdale Road /
Bromley / BR1 2QZ / United Kingdom.  Tel,fax: +44 (0) 208 819 6559

Expert Open Source For Consumer Devices - http://www.openedhand.com
Index: linux-2.6.22/drivers/video/glamo/glamo-fb.c
===================================================================
--- linux-2.6.22.orig/drivers/video/glamo/glamo-fb.c    2008-01-09 
18:18:45.000000000 +0100
+++ linux-2.6.22/drivers/video/glamo/glamo-fb.c 2008-01-09 18:53:11.000000000 
+0100
@@ -425,7 +425,6 @@
        }
 
        info->fix.line_length = (var->xres * var->bits_per_pixel) / 8;
-       info->fix.smem_len = info->fix.line_length * var->yres_virtual;
 
        glamofb_update_lcd_controller(glamo, var);
 

Reply via email to