]> Git Repo - J-linux.git/commitdiff
cyber2000fb: fix console in truecolor modes
authorOndrej Zary <[email protected]>
Thu, 29 Jul 2010 20:40:54 +0000 (22:40 +0200)
committerRussell King <[email protected]>
Fri, 30 Jul 2010 22:29:33 +0000 (23:29 +0100)
Return value was not set to 0 in setcolreg() with truecolor modes. This causes
fb_set_cmap() to abort after first color, resulting in blank palette - and
blank console in 24bpp and 32bpp modes.

Signed-off-by: Ondrej Zary <[email protected]>
Signed-off-by: Russell King <[email protected]>
drivers/video/cyber2000fb.c

index 3eee8296513c8375fd5d5bac1f314fe040e02525..0c1afd13ddd3055be4c61abd56253edf38f7ac36 100644 (file)
@@ -388,6 +388,7 @@ cyber2000fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
                pseudo_val |= convert_bitfield(red, &var->red);
                pseudo_val |= convert_bitfield(green, &var->green);
                pseudo_val |= convert_bitfield(blue, &var->blue);
+               ret = 0;
                break;
        }
 
This page took 0.04828 seconds and 4 git commands to generate.