aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/cirrusfb.c
diff options
context:
space:
mode:
authorKrzysztof Helt <krzysztof.h1@wp.pl>2009-03-31 18:25:17 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-04-01 11:59:29 -0400
commit4242a23c9e6b8e2462bb49bf78b76bfdf32158b5 (patch)
tree9339a9380bc5ae2f4eb0cf63444ffb02946a89c4 /drivers/video/cirrusfb.c
parentdf3aafd57d590d6f3d95310fc3430f3a536d1e59 (diff)
cirrusfb: fix threshold register mask for Laguna chips
Fix threshold register mask for Laguna chips otherwise some 8bpp modes are garbled after selecting a 24bpp mode. Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/cirrusfb.c')
-rw-r--r--drivers/video/cirrusfb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/cirrusfb.c b/drivers/video/cirrusfb.c
index a364e1b0dcb7..9bb811d56721 100644
--- a/drivers/video/cirrusfb.c
+++ b/drivers/video/cirrusfb.c
@@ -875,7 +875,7 @@ static int cirrusfb_set_par_foo(struct fb_info *info)
875 threshold = fb_readw(cinfo->laguna_mmio + 0xea); 875 threshold = fb_readw(cinfo->laguna_mmio + 0xea);
876 control &= ~0x6800; 876 control &= ~0x6800;
877 format = 0; 877 format = 0;
878 threshold &= 0xffe0 & 0x3fbf; 878 threshold &= 0xffc0 & 0x3fbf;
879 } 879 }
880 if (nom) { 880 if (nom) {
881 tmp = den << 1; 881 tmp = den << 1;