[PATCH 2.6.19 4/6] tgafb: Fix the mode register setting

From: Maciej W. Rozycki
Date: Wed Dec 13 2006 - 12:43:51 EST


There is no need to set the GE bit (Win32 compatibility) in the mode
register; it shall get cleared with the next subsequent update to the
register anyway.

Signed-off-by: Maciej W. Rozycki <macro@xxxxxxxxxxxxxx>
---

The driver uses a number of magic constants throughout. The hardware is
fully documented, so my plan is to fix up them all and provide macros for
all the used bits and perhaps more once I have finished with updating the
driver.

Please apply.

Maciej

patch-mips-2.6.18-20060920-tgafb-mode-1
diff -up --recursive --new-file linux-mips-2.6.18-20060920.macro/drivers/video/tgafb.c linux-mips-2.6.18-20060920/drivers/video/tgafb.c
--- linux-mips-2.6.18-20060920.macro/drivers/video/tgafb.c 2006-09-20 20:50:52.000000000 +0000
+++ linux-mips-2.6.18-20060920/drivers/video/tgafb.c 2006-12-12 05:15:28.000000000 +0000
@@ -136,10 +136,10 @@ tgafb_set_par(struct fb_info *info)
0x00000303
};
static unsigned int const mode_presets[4] = {
- 0x00002000,
- 0x00002300,
+ 0x00000000,
+ 0x00000300,
0xffffffff,
- 0x00002300
+ 0x00000300
};
static unsigned int const base_addr_presets[4] = {
0x00000000,
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/