diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2007-10-12 21:27:47 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2007-10-12 21:27:47 -0400 |
commit | b981d8b3f5e008ff10d993be633ad00564fc22cd (patch) | |
tree | e292dc07b22308912cf6a58354a608b9e5e8e1fd /drivers/input/serio/i8042.c | |
parent | b11d2127c4893a7315d1e16273bc8560049fa3ca (diff) | |
parent | 2b9e0aae1d50e880c58d46788e5e3ebd89d75d62 (diff) |
Merge master.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux-2.6
Conflicts:
drivers/macintosh/adbhid.c
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 | ||