diff options
-rw-r--r-- | drivers/video/omap/omapfb_main.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/video/omap/omapfb_main.c b/drivers/video/omap/omapfb_main.c index 2c4f470fa086..8ce60e1b220a 100644 --- a/drivers/video/omap/omapfb_main.c +++ b/drivers/video/omap/omapfb_main.c | |||
@@ -486,10 +486,11 @@ static int set_color_mode(struct omapfb_plane_struct *plane, | |||
486 | return 0; | 486 | return 0; |
487 | case 12: | 487 | case 12: |
488 | var->bits_per_pixel = 16; | 488 | var->bits_per_pixel = 16; |
489 | plane->color_mode = OMAPFB_COLOR_RGB444; | ||
490 | return 0; | ||
491 | case 16: | 489 | case 16: |
492 | plane->color_mode = OMAPFB_COLOR_RGB565; | 490 | if (plane->fbdev->panel->bpp == 12) |
491 | plane->color_mode = OMAPFB_COLOR_RGB444; | ||
492 | else | ||
493 | plane->color_mode = OMAPFB_COLOR_RGB565; | ||
493 | return 0; | 494 | return 0; |
494 | default: | 495 | default: |
495 | return -EINVAL; | 496 | return -EINVAL; |