From: Russell King Date: Sat, 30 Apr 2005 21:39:51 +0000 (+0100) Subject: [PATCH] ARM: AMBA CLCD: program palette for pseudocolor visuals X-Git-Tag: v2.6.12-rc4~136^2~190^2~2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ddb8a16aa0e60e7fdc48b1f532cf43e692f8fae;p=linux-2.6 [PATCH] ARM: AMBA CLCD: program palette for pseudocolor visuals Signed-off-by: Russell King --- diff --git a/drivers/video/amba-clcd.c b/drivers/video/amba-clcd.c index 3e386fd4c5..2896a380d4 100644 --- a/drivers/video/amba-clcd.c +++ b/drivers/video/amba-clcd.c @@ -256,7 +256,7 @@ clcdfb_setcolreg(unsigned int regno, unsigned int red, unsigned int green, convert_bitfield(green, &fb->fb.var.green) | convert_bitfield(red, &fb->fb.var.red); - if (fb->fb.var.bits_per_pixel == 8 && regno < 256) { + if (fb->fb.fix.visual == FB_VISUAL_PSEUDOCOLOR && regno < 256) { int hw_reg = CLCD_PALETTE + ((regno * 2) & ~3); u32 val, mask, newval;