From: Geert Uytterhoeven Date: Tue, 26 May 2015 11:34:02 +0000 (+0200) Subject: gpio: pcf857x: Check for irq_set_irq_wake() failures X-Git-Tag: omap-for-v4.2/fixes-rc1^2~162^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffb8e44bd7617ede81d526d33d13d96a2c6a6e20;p=pandora-kernel.git gpio: pcf857x: Check for irq_set_irq_wake() failures If an interrupt controller doesn't support wake-up configuration, irq_set_irq_wake() returns an error code. Then any subsequent call trying to deconfigure wake-up will cause an imbalance, and a warning will be printed: WARNING: CPU: 1 PID: 1341 at kernel/irq/manage.c:540 irq_set_irq_wake+0x Unbalanced IRQ 26 wake disable To fix this, refrain from any further parent interrupt controller (de)configuration if irq_set_irq_wake() failed. Signed-off-by: Geert Uytterhoeven Signed-off-by: Linus Walleij --- Reading git-diff-tree failed