Input: matrix-keypad - handle cases when GPIOs can't be wakeup sources
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 25 Dec 2009 06:50:23 +0000 (22:50 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 25 Dec 2009 06:50:55 +0000 (22:50 -0800)
On certain boards not all GPIOs may be used as wakeup sources, in which
case some of enable_irq_wake() calls will fail. On resume calling
disable_irq_wake() will warn about unbalanced IRQ wake disable.

Solve this by checking whether enable_irq_wake() succeeded or not and
no not call disable_irq_wake() for these GPIOs/IRQs that have not been
enabled.

Reported-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>

No differences found