power: gpio-charger: balance enable/disable_irq_wake calls
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Thu, 15 Jan 2015 02:00:37 +0000 (05:00 +0300)
committerSebastian Reichel <sre@kernel.org>
Tue, 20 Jan 2015 12:58:31 +0000 (13:58 +0100)
commitfaeed51bb65ce0241052d8dc24ac331ade12e976
tree2d57bd6d3e6df6437956ba6ecde15fd058298fb6
parentb847dd96e659c13be9d94c3c19b51cdf0feb1c99
power: gpio-charger: balance enable/disable_irq_wake calls

enable_irq_wakeup returns 0 in case it correctly enabled the IRQ to
generate the wakeup event (and thus resume should call disable_irq_wake).
Currently gpio-charger driver has this logic inverted. Correct that thus
correcting enable/disable_irq_wake() calls balance.

Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/gpio-charger.c