diff options
author | Robert Jarzmik <robert.jarzmik@free.fr> | 2008-08-12 00:22:27 +0400 |
---|---|---|
committer | Anton Vorontsov <cbouatmailru@gmail.com> | 2008-09-01 02:10:06 +0400 |
commit | e82374fd1a804e197fc2a54c3930e70c5d300abc (patch) | |
tree | daceef0ed1c611e38b016ba400890873c65cce26 /include/linux/power_supply.h | |
parent | bef69ea0dcce574a425feb0a5aa4c63dd108b9a6 (diff) | |
download | linux-e82374fd1a804e197fc2a54c3930e70c5d300abc.tar.xz |
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 <robert.jarzmik@free.fr>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
Diffstat (limited to 'include/linux/power_supply.h')
0 files changed, 0 insertions, 0 deletions