aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/keyboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/keyboard.c')
-rw-r--r--drivers/char/keyboard.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/char/keyboard.c b/drivers/char/keyboard.c
index 797480768b4..bf2339c869e 100644
--- a/drivers/char/keyboard.c
+++ b/drivers/char/keyboard.c
@@ -1362,6 +1362,7 @@ static struct input_handler kbd_handler = {
1362int __init kbd_init(void) 1362int __init kbd_init(void)
1363{ 1363{
1364 int i; 1364 int i;
1365 int error;
1365 1366
1366 for (i = 0; i < MAX_NR_CONSOLES; i++) { 1367 for (i = 0; i < MAX_NR_CONSOLES; i++) {
1367 kbd_table[i].ledflagstate = KBD_DEFLEDS; 1368 kbd_table[i].ledflagstate = KBD_DEFLEDS;
@@ -1373,7 +1374,9 @@ int __init kbd_init(void)
1373 kbd_table[i].kbdmode = VC_XLATE; 1374 kbd_table[i].kbdmode = VC_XLATE;
1374 } 1375 }
1375 1376
1376 input_register_handler(&kbd_handler); 1377 error = input_register_handler(&kbd_handler);
1378 if (error)
1379 return error;
1377 1380
1378 tasklet_enable(&keyboard_tasklet); 1381 tasklet_enable(&keyboard_tasklet);
1379 tasklet_schedule(&keyboard_tasklet); 1382 tasklet_schedule(&keyboard_tasklet);