Input: tca6416-keypad - fix interrupt enable disbalance
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 24 Jul 2023 05:30:20 +0000 (22:30 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 29 Jul 2023 01:04:14 +0000 (18:04 -0700)
commitcc141c35af873c6796e043adcb820833bd8ef8c5
treed9addb7a20e3ea892558a7348a3350b486975d99
parentd3176b29263aa8211830c77d87a806066c2c178c
Input: tca6416-keypad - fix interrupt enable disbalance

The driver has been switched to use IRQF_NO_AUTOEN, but in the error
unwinding and remove paths calls to enable_irq() were left in place, which
will lead to an incorrect enable counter value.

Fixes: bcd9730a04a1 ("Input: move to use request_irq by IRQF_NO_AUTOEN flag")
Link: https://lore.kernel.org/r/20230724053024.352054-3-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/tca6416-keypad.c