From: Robert Jarzmik Date: Mon, 11 Aug 2008 20:22:27 +0000 (+0200) Subject: pda_power: Check and handle return value of set_irq_wake X-Git-Tag: v2.6.28-rc1~93^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e82374fd1a804e197fc2a54c3930e70c5d300abc;p=pandora-kernel.git pda_power: Check and handle return value of set_irq_wake The recent change in commit 2db873211ba47ef704c301f9ecf4a33413a0b649 forces the calls enable_irq_wake() and disable_irq_wake() to be balanced. But if in pda_power_suspend() the call to enable_irq_wake() fails (because attached gpio cannot wake up the CPU), the corresponding disable_irq_wake will WARN(). Fix it by storing success/failure of enable_irq_wake(). Signed-off-by: Robert Jarzmik Signed-off-by: Anton Vorontsov --- Reading git-diff-tree failed