[PATCH] Fix warning in sis frame buffer driver

From: Andi Kleen
Date: Tue Oct 07 2003 - 13:11:12 EST



Just fix a warning in the sis framebuffer driver and eliminate some
dead code. Trival.

diff -u linux-2.5-cleanup/drivers/video/sis/sis_main.c-o linux-2.5-cleanup/drivers/video/sis/sis_main.c
--- linux-2.5-cleanup/drivers/video/sis/sis_main.c-o 2003-06-05 02:29:10.000000000 +0200
+++ linux-2.5-cleanup/drivers/video/sis/sis_main.c 2003-12-02 17:19:05.151986072 +0100
@@ -619,18 +619,9 @@
double drate = 0, hrate = 0;
int found_mode = 0;
int old_mode;
- unsigned char reg;

TWDEBUG("Inside do_set_var");

-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
- inSISIDXREG(SISCR,0x34,reg);
- if(reg & 0x80) {
- printk(KERN_INFO "sisfb: Cannot change display mode, X server is active\n");
- return -EBUSY;
- }
-#endif
-
if((var->vmode & FB_VMODE_MASK) == FB_VMODE_NONINTERLACED) {
vtotal = var->upper_margin + var->yres + var->lower_margin +
var->vsync_len;
-
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/