From: Ville Syrjala Even though it may not be strictly necessary transp.offset should probably be 0 when alpha channel is not available. Signed-off-by: Ville Syrjala Cc: Ben Dooks Signed-off-by: Andrew Morton --- drivers/video/sm501fb.c | 2 ++ 1 file changed, 2 insertions(+) diff -puN drivers/video/sm501fb.c~sm501fb-set-transpoffset-to-0-in-8bpp-and-16bpp-modes drivers/video/sm501fb.c --- a/drivers/video/sm501fb.c~sm501fb-set-transpoffset-to-0-in-8bpp-and-16bpp-modes +++ a/drivers/video/sm501fb.c @@ -281,6 +281,7 @@ static int sm501fb_check_var(struct fb_v var->blue.length = var->bits_per_pixel; var->blue.offset = 0; var->transp.length = 0; + var->transp.offset = 0; break; @@ -294,6 +295,7 @@ static int sm501fb_check_var(struct fb_v var->green.offset = 5; var->blue.offset = 0; } + var->transp.offset = 0; var->red.length = 5; var->green.length = 6; _