Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 110131
b: refs/heads/master
c: c0c9209
h: refs/heads/master
i:
  110129: edb780f
  110127: f50a8d0
v: v3
  • Loading branch information
Pascal Terjan authored and Linus Torvalds committed Oct 2, 2008
1 parent b84f4ec commit c911885
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 16dbc6c9616363fe53811abcbd935336dc0a0f01
refs/heads/master: c0c9209ddd96bc4f1d70a8b9958710671e076080
13 changes: 4 additions & 9 deletions trunk/drivers/accessibility/braille/braille_console.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,22 +376,17 @@ int braille_register_console(struct console *console, int index,
console->flags |= CON_ENABLED;
console->index = index;
braille_co = console;
register_keyboard_notifier(&keyboard_notifier_block);
register_vt_notifier(&vt_notifier_block);
return 0;
}

int braille_unregister_console(struct console *console)
{
if (braille_co != console)
return -EINVAL;
unregister_keyboard_notifier(&keyboard_notifier_block);
unregister_vt_notifier(&vt_notifier_block);
braille_co = NULL;
return 0;
}

static int __init braille_init(void)
{
register_keyboard_notifier(&keyboard_notifier_block);
register_vt_notifier(&vt_notifier_block);
return 0;
}

console_initcall(braille_init);

0 comments on commit c911885

Please sign in to comment.