aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/fbdev/68328fb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/fbdev/68328fb.c')
-rw-r--r--drivers/video/fbdev/68328fb.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/video/fbdev/68328fb.c b/drivers/video/fbdev/68328fb.c
index 552258c8f99d..17f21cedff9b 100644
--- a/drivers/video/fbdev/68328fb.c
+++ b/drivers/video/fbdev/68328fb.c
@@ -49,12 +49,6 @@
49#error wrong architecture for the MC68x328 frame buffer device 49#error wrong architecture for the MC68x328 frame buffer device
50#endif 50#endif
51 51
52#if defined(CONFIG_FB_68328_INVERT)
53#define MC68X328FB_MONO_VISUAL FB_VISUAL_MONO01
54#else
55#define MC68X328FB_MONO_VISUAL FB_VISUAL_MONO10
56#endif
57
58static u_long videomemory; 52static u_long videomemory;
59static u_long videomemorysize; 53static u_long videomemorysize;
60 54
@@ -462,7 +456,7 @@ int __init mc68x328fb_init(void)
462 fb_info.fix.line_length = 456 fb_info.fix.line_length =
463 get_line_length(mc68x328fb_default.xres_virtual, mc68x328fb_default.bits_per_pixel); 457 get_line_length(mc68x328fb_default.xres_virtual, mc68x328fb_default.bits_per_pixel);
464 fb_info.fix.visual = (mc68x328fb_default.bits_per_pixel) == 1 ? 458 fb_info.fix.visual = (mc68x328fb_default.bits_per_pixel) == 1 ?
465 MC68X328FB_MONO_VISUAL : FB_VISUAL_PSEUDOCOLOR; 459 FB_VISUAL_MONO10 : FB_VISUAL_PSEUDOCOLOR;
466 if (fb_info.var.bits_per_pixel == 1) { 460 if (fb_info.var.bits_per_pixel == 1) {
467 fb_info.var.red.length = fb_info.var.green.length = fb_info.var.blue.length = 1; 461 fb_info.var.red.length = fb_info.var.green.length = fb_info.var.blue.length = 1;
468 fb_info.var.red.offset = fb_info.var.green.offset = fb_info.var.blue.offset = 0; 462 fb_info.var.red.offset = fb_info.var.green.offset = fb_info.var.blue.offset = 0;