aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/pm2fb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/pm2fb.c')
-rw-r--r--drivers/video/pm2fb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/pm2fb.c b/drivers/video/pm2fb.c
index 2a8ba6022d3d..33f17a96a569 100644
--- a/drivers/video/pm2fb.c
+++ b/drivers/video/pm2fb.c
@@ -645,6 +645,8 @@ static int pm2fb_check_var(struct fb_var_screeninfo *var, struct fb_info *info)
645 return -EINVAL; 645 return -EINVAL;
646 } 646 }
647 647
648 var->transp.offset = 0;
649 var->transp.length = 0;
648 switch(var->bits_per_pixel) { 650 switch(var->bits_per_pixel) {
649 case 8: 651 case 8:
650 var->red.length = var->green.length = var->blue.length = 8; 652 var->red.length = var->green.length = var->blue.length = 8;