[PATCH] v2.6.5 drivers/video/console/mdacon.c

From: Wim Van Sebroeck
Date: Mon Apr 12 2004 - 14:18:32 EST


Hi Andrew,

A small fix for drivers/video/console/mdacon.c .
It's untested since I don't have this hardware myself.

Greetings,
Wim.

================================================================================
diff -Nru a/drivers/video/console/mdacon.c b/drivers/video/console/mdacon.c
--- a/drivers/video/console/mdacon.c Thu Mar 11 03:55:28 2004
+++ b/drivers/video/console/isicom.c Mon Apr 12 20:49:45 2004
@@ -371,7 +371,7 @@
if (mda_display_fg == NULL)
mda_display_fg = c;

- MOD_INC_USE_COUNT;
+ __module_get(THIS_MODULE);
}

static void mdacon_deinit(struct vc_data *c)
@@ -381,7 +381,7 @@
if (mda_display_fg == c)
mda_display_fg = NULL;

- MOD_DEC_USE_COUNT;
+ module_put(THIS_MODULE);
}

static inline u16 mda_convert_attr(u16 ch)
@@ -502,7 +502,7 @@
return -EINVAL;
}

-static int mdacon_blank(struct vc_data *c, int blank)
+static int mdacon_blank(struct vc_data *c, int blank, int mode_switch)
{
if (mda_type == TYPE_MDA) {
if (blank)
-
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/