Fix line length calculation. var->width is the size of the display in mm. We like to use the pixel size. Without this fix, dynamic (fbset) based resolution changes with s3c2410_fb don't work at all. Spotted by john cass Signed-off-by: Stefan Schmidt Signed-off-by: Harald Welte Index: linux-2.6.22.5-moko/drivers/video/s3c2410fb.c =================================================================== --- linux-2.6.22.5-moko.orig/drivers/video/s3c2410fb.c +++ linux-2.6.22.5-moko/drivers/video/s3c2410fb.c @@ -470,7 +470,7 @@ break; } - fbi->fb->fix.line_length = (var->width*var->bits_per_pixel)/8; + fbi->fb->fix.line_length = (var->xres_virtual*var->bits_per_pixel)/8; /* activate this new configuration */