From: Uwe Kleine-König Date: Wed, 23 Jul 2008 12:42:25 +0000 (+0200) Subject: set_irq_wake: fix return code and wake status tracking X-Git-Tag: v2.6.27-rc1~858 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2db873211ba47ef704c301f9ecf4a33413a0b649;p=pandora-kernel.git set_irq_wake: fix return code and wake status tracking Since 15a647eba94c3da27ccc666bea72e7cca06b2d19 set_irq_wake returned -ENXIO if another device had it already enabled. Zero is the right value to return in this case. Moreover the change to desc->status was not reverted if desc->chip->set_wake returned an error. Signed-off-by: Uwe Kleine-König Acked-by: David Brownell Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Russell King Cc: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed