X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fvideo%2Fconsole%2Fsticon.c;h=57b21e533036983637c4fd6be89b3ba581ee042c;hb=97bf2856c6014879bd04983a3e9dfcdac1e7fe85;hp=99262680fdd8adc966c1da62cbfd99c187816550;hpb=9bf4aaab3e101692164d49b7ca357651eb691cb6;p=linux-2.6.git diff --git a/drivers/video/console/sticon.c b/drivers/video/console/sticon.c index 99262680f..57b21e533 100644 --- a/drivers/video/console/sticon.c +++ b/drivers/video/console/sticon.c @@ -37,7 +37,6 @@ #include #include -#include #include #include #include @@ -75,7 +74,7 @@ static inline void cursor_undrawn(void) cursor_drawn = 0; } -static const char *__init sticon_startup(void) +static const char *sticon_startup(void) { return "STI console"; } @@ -87,13 +86,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 +109,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 +214,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); */ } } @@ -348,7 +345,7 @@ static void sticon_save_screen(struct vc_data *conp) { } -static struct consw sti_con = { +static const struct consw sti_con = { .owner = THIS_MODULE, .con_startup = sticon_startup, .con_init = sticon_init,