Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 164886
b: refs/heads/master
c: 2ddce3f
h: refs/heads/master
v: v3
  • Loading branch information
Ian Armstrong authored and Linus Torvalds committed Sep 23, 2009
1 parent fe578a7 commit 5ce2560
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a690606d1f54845b018d033ac32e91df25cb2680
refs/heads/master: 2ddce3fd0acbdc1be684fb5f919ae3d2e9518aac
10 changes: 10 additions & 0 deletions trunk/drivers/video/console/fbcon.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ static int last_fb_vc = MAX_NR_CONSOLES - 1;
static int fbcon_is_default = 1;
static int fbcon_has_exited;
static int primary_device = -1;
static int fbcon_has_console_bind;

#ifdef CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY
static int map_override;
Expand Down Expand Up @@ -544,6 +545,8 @@ static int fbcon_takeover(int show_logo)
con2fb_map[i] = -1;
}
info_idx = -1;
} else {
fbcon_has_console_bind = 1;
}

return err;
Expand Down Expand Up @@ -2949,6 +2952,10 @@ static int fbcon_unbind(void)

ret = unbind_con_driver(&fb_con, first_fb_vc, last_fb_vc,
fbcon_is_default);

if (!ret)
fbcon_has_console_bind = 0;

return ret;
}
#else
Expand All @@ -2962,6 +2969,9 @@ static int fbcon_fb_unbind(int idx)
{
int i, new_idx = -1, ret = 0;

if (!fbcon_has_console_bind)
return 0;

for (i = first_fb_vc; i <= last_fb_vc; i++) {
if (con2fb_map[i] != idx &&
con2fb_map[i] != -1) {
Expand Down

0 comments on commit 5ce2560

Please sign in to comment.