diff options
Diffstat (limited to 'drivers/input/serio/i8042.c')
-rw-r--r-- | drivers/input/serio/i8042.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/input/serio/i8042.c b/drivers/input/serio/i8042.c index 42aa4ec72661..11dafc0ee994 100644 --- a/drivers/input/serio/i8042.c +++ b/drivers/input/serio/i8042.c | |||
@@ -516,6 +516,7 @@ static irqreturn_t __devinit i8042_aux_test_irq(int irq, void *dev_id) | |||
516 | { | 516 | { |
517 | unsigned long flags; | 517 | unsigned long flags; |
518 | unsigned char str, data; | 518 | unsigned char str, data; |
519 | int ret = 0; | ||
519 | 520 | ||
520 | spin_lock_irqsave(&i8042_lock, flags); | 521 | spin_lock_irqsave(&i8042_lock, flags); |
521 | str = i8042_read_status(); | 522 | str = i8042_read_status(); |
@@ -524,10 +525,11 @@ static irqreturn_t __devinit i8042_aux_test_irq(int irq, void *dev_id) | |||
524 | if (i8042_irq_being_tested && | 525 | if (i8042_irq_being_tested && |
525 | data == 0xa5 && (str & I8042_STR_AUXDATA)) | 526 | data == 0xa5 && (str & I8042_STR_AUXDATA)) |
526 | complete(&i8042_aux_irq_delivered); | 527 | complete(&i8042_aux_irq_delivered); |
528 | ret = 1; | ||
527 | } | 529 | } |
528 | spin_unlock_irqrestore(&i8042_lock, flags); | 530 | spin_unlock_irqrestore(&i8042_lock, flags); |
529 | 531 | ||
530 | return IRQ_HANDLED; | 532 | return IRQ_RETVAL(ret); |
531 | } | 533 | } |
532 | 534 | ||
533 | /* | 535 | /* |
@@ -1042,7 +1044,7 @@ static void __devinit i8042_register_ports(void) | |||
1042 | } | 1044 | } |
1043 | } | 1045 | } |
1044 | 1046 | ||
1045 | static void __devinit i8042_unregister_ports(void) | 1047 | static void __devexit i8042_unregister_ports(void) |
1046 | { | 1048 | { |
1047 | int i; | 1049 | int i; |
1048 | 1050 | ||