diff options
Diffstat (limited to 'drivers/input/keyboard/lkkbd.c')
-rw-r--r-- | drivers/input/keyboard/lkkbd.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/input/keyboard/lkkbd.c b/drivers/input/keyboard/lkkbd.c index 5174224cadb4..708d5a1bc3d2 100644 --- a/drivers/input/keyboard/lkkbd.c +++ b/drivers/input/keyboard/lkkbd.c | |||
@@ -453,8 +453,7 @@ lkkbd_detection_done (struct lkkbd *lk) | |||
453 | * is received. | 453 | * is received. |
454 | */ | 454 | */ |
455 | static irqreturn_t | 455 | static irqreturn_t |
456 | lkkbd_interrupt (struct serio *serio, unsigned char data, unsigned int flags, | 456 | lkkbd_interrupt (struct serio *serio, unsigned char data, unsigned int flags) |
457 | struct pt_regs *regs) | ||
458 | { | 457 | { |
459 | struct lkkbd *lk = serio_get_drvdata (serio); | 458 | struct lkkbd *lk = serio_get_drvdata (serio); |
460 | int i; | 459 | int i; |
@@ -473,7 +472,6 @@ lkkbd_interrupt (struct serio *serio, unsigned char data, unsigned int flags, | |||
473 | 472 | ||
474 | switch (data) { | 473 | switch (data) { |
475 | case LK_ALL_KEYS_UP: | 474 | case LK_ALL_KEYS_UP: |
476 | input_regs (lk->dev, regs); | ||
477 | for (i = 0; i < ARRAY_SIZE (lkkbd_keycode); i++) | 475 | for (i = 0; i < ARRAY_SIZE (lkkbd_keycode); i++) |
478 | if (lk->keycode[i] != KEY_RESERVED) | 476 | if (lk->keycode[i] != KEY_RESERVED) |
479 | input_report_key (lk->dev, lk->keycode[i], 0); | 477 | input_report_key (lk->dev, lk->keycode[i], 0); |
@@ -501,7 +499,6 @@ lkkbd_interrupt (struct serio *serio, unsigned char data, unsigned int flags, | |||
501 | 499 | ||
502 | default: | 500 | default: |
503 | if (lk->keycode[data] != KEY_RESERVED) { | 501 | if (lk->keycode[data] != KEY_RESERVED) { |
504 | input_regs (lk->dev, regs); | ||
505 | if (!test_bit (lk->keycode[data], lk->dev->key)) | 502 | if (!test_bit (lk->keycode[data], lk->dev->key)) |
506 | input_report_key (lk->dev, lk->keycode[data], 1); | 503 | input_report_key (lk->dev, lk->keycode[data], 1); |
507 | else | 504 | else |