From: Dmitry Torokhov Date: Fri, 25 Dec 2009 06:50:23 +0000 (-0800) Subject: Input: matrix-keypad - handle cases when GPIOs can't be wakeup sources X-Git-Tag: v2.6.33-rc3~31^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd219234d201431d0fc56a74e3a4a97ca3eb4589;p=pandora-kernel.git Input: matrix-keypad - handle cases when GPIOs can't be wakeup sources 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 Signed-off-by: Dmitry Torokhov --- Reading git-diff-tree failed