aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/video/tridentfb.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/video/tridentfb.c b/drivers/video/tridentfb.c
index da4b464cbdba..1c3f0ba4b33a 100644
--- a/drivers/video/tridentfb.c
+++ b/drivers/video/tridentfb.c
@@ -878,11 +878,9 @@ static int tridentfb_check_var(struct fb_var_screeninfo *var,
878 switch (bpp) { 878 switch (bpp) {
879 case 8: 879 case 8:
880 var->red.offset = 0; 880 var->red.offset = 0;
881 var->green.offset = 0; 881 var->red.length = 8;
882 var->blue.offset = 0; 882 var->green = var->red;
883 var->red.length = 6; 883 var->blue = var->red;
884 var->green.length = 6;
885 var->blue.length = 6;
886 break; 884 break;
887 case 16: 885 case 16:
888 var->red.offset = 11; 886 var->red.offset = 11;