diff options
Diffstat (limited to 'drivers/video/console')
-rw-r--r-- | drivers/video/console/fbcon.c | 6 | ||||
-rw-r--r-- | drivers/video/console/font_mini_4x6.c | 2 | ||||
-rw-r--r-- | drivers/video/console/tileblit.c | 2 |
3 files changed, 4 insertions, 6 deletions
diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c index 9c092b8d64e6..8745637e4b7e 100644 --- a/drivers/video/console/fbcon.c +++ b/drivers/video/console/fbcon.c | |||
@@ -370,7 +370,6 @@ static void fb_flashcursor(struct work_struct *work) | |||
370 | { | 370 | { |
371 | struct fb_info *info = container_of(work, struct fb_info, queue); | 371 | struct fb_info *info = container_of(work, struct fb_info, queue); |
372 | struct fbcon_ops *ops = info->fbcon_par; | 372 | struct fbcon_ops *ops = info->fbcon_par; |
373 | struct display *p; | ||
374 | struct vc_data *vc = NULL; | 373 | struct vc_data *vc = NULL; |
375 | int c; | 374 | int c; |
376 | int mode; | 375 | int mode; |
@@ -386,7 +385,6 @@ static void fb_flashcursor(struct work_struct *work) | |||
386 | return; | 385 | return; |
387 | } | 386 | } |
388 | 387 | ||
389 | p = &fb_display[vc->vc_num]; | ||
390 | c = scr_readw((u16 *) vc->vc_pos); | 388 | c = scr_readw((u16 *) vc->vc_pos); |
391 | mode = (!ops->cursor_flash || ops->cursor_state.enable) ? | 389 | mode = (!ops->cursor_flash || ops->cursor_state.enable) ? |
392 | CM_ERASE : CM_DRAW; | 390 | CM_ERASE : CM_DRAW; |
@@ -823,10 +821,10 @@ static int set_con2fb_map(int unit, int newidx, int user) | |||
823 | if (oldidx == newidx) | 821 | if (oldidx == newidx) |
824 | return 0; | 822 | return 0; |
825 | 823 | ||
826 | if (!info || fbcon_has_exited) | 824 | if (!info) |
827 | return -EINVAL; | 825 | return -EINVAL; |
828 | 826 | ||
829 | if (!err && !search_for_mapped_con()) { | 827 | if (!search_for_mapped_con() || !con_is_bound(&fb_con)) { |
830 | info_idx = newidx; | 828 | info_idx = newidx; |
831 | return fbcon_takeover(0); | 829 | return fbcon_takeover(0); |
832 | } | 830 | } |
diff --git a/drivers/video/console/font_mini_4x6.c b/drivers/video/console/font_mini_4x6.c index a19a7f33133e..fa6e698e63c4 100644 --- a/drivers/video/console/font_mini_4x6.c +++ b/drivers/video/console/font_mini_4x6.c | |||
@@ -1,5 +1,5 @@ | |||
1 | 1 | ||
2 | /* Hand composed "Miniscule" 4x6 font, with binary data generated using | 2 | /* Hand composed "Minuscule" 4x6 font, with binary data generated using |
3 | * Perl stub. | 3 | * Perl stub. |
4 | * | 4 | * |
5 | * Use 'perl -x mini_4x6.c < mini_4x6.c > new_version.c' to regenerate | 5 | * Use 'perl -x mini_4x6.c < mini_4x6.c > new_version.c' to regenerate |
diff --git a/drivers/video/console/tileblit.c b/drivers/video/console/tileblit.c index 0056a41e5c35..15e8e1a89c45 100644 --- a/drivers/video/console/tileblit.c +++ b/drivers/video/console/tileblit.c | |||
@@ -83,7 +83,7 @@ static void tile_cursor(struct vc_data *vc, struct fb_info *info, int mode, | |||
83 | int softback_lines, int fg, int bg) | 83 | int softback_lines, int fg, int bg) |
84 | { | 84 | { |
85 | struct fb_tilecursor cursor; | 85 | struct fb_tilecursor cursor; |
86 | int use_sw = (vc->vc_cursor_type & 0x01); | 86 | int use_sw = (vc->vc_cursor_type & 0x10); |
87 | 87 | ||
88 | cursor.sx = vc->vc_x; | 88 | cursor.sx = vc->vc_x; |
89 | cursor.sy = vc->vc_y; | 89 | cursor.sy = vc->vc_y; |