mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 20:51:44 +00:00
cyber2000fb: fix console in truecolor modes
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 <linux@rainbow-software.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
parent
00b4703f03
commit
e76df4d339
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user