vserver 2.0 rc7
[linux-2.6.git] / drivers / video / console / sticon.c
index 9926268..fd5940f 100644 (file)
@@ -87,13 +87,12 @@ static int sticon_set_palette(struct vc_data *c, unsigned char *table)
 
 static void sticon_putc(struct vc_data *conp, int c, int ypos, int xpos)
 {
-    int unit = conp->vc_num;
     int redraw_cursor = 0;
 
     if (vga_is_gfx || console_blanked)
            return;
-           
-    if (vt_cons[unit]->vc_mode != KD_TEXT)
+
+    if (conp->vc_mode != KD_TEXT)
            return;
 #if 0
     if ((p->cursor_x == xpos) && (p->cursor_y == ypos)) {
@@ -111,15 +110,14 @@ static void sticon_putc(struct vc_data *conp, int c, int ypos, int xpos)
 static void sticon_putcs(struct vc_data *conp, const unsigned short *s,
                         int count, int ypos, int xpos)
 {
-    int unit = conp->vc_num;
     int redraw_cursor = 0;
 
     if (vga_is_gfx || console_blanked)
            return;
 
-    if (vt_cons[unit]->vc_mode != KD_TEXT)
+    if (conp->vc_mode != KD_TEXT)
            return;
-    
+
 #if 0
     if ((p->cursor_y == ypos) && (xpos <= p->cursor_x) &&
        (p->cursor_x < (xpos + count))) {
@@ -217,7 +215,7 @@ static void sticon_init(struct vc_data *c, int init)
     } else {
        /* vc_rows = (c->vc_rows > vc_rows) ? vc_rows : c->vc_rows; */
        /* vc_cols = (c->vc_cols > vc_cols) ? vc_cols : c->vc_cols; */
-       vc_resize(c->vc_num, vc_cols, vc_rows); 
+       vc_resize(c, vc_cols, vc_rows);
 /*     vc_resize_con(vc_rows, vc_cols, c->vc_num); */
     }
 }