suspend: Return error when pending wakeup source is found.
authorRuchi Kandoi <kandoiruchi@google.com>
Thu, 7 May 2015 17:18:55 +0000 (10:18 -0700)
committerRuchi Kandoi <kandoiruchi@google.com>
Mon, 18 May 2015 16:57:19 +0000 (16:57 +0000)
commit6e9c6582376ac3c430bf7c89647313b2e685a597
tree3dca5c42f47dbe1df6ef43d629852381fd935ce3
parentba6f1652e0c153aae45ff3c6259e1c91378b9cfe
suspend: Return error when pending wakeup source is found.

If a wakeup source is found to be pending in the last stage of suspend
after syscore suspend then the device doesn't suspend but the error is
not propogated which causes an error in the accounting for the number
of suspend aborts and successful suspends.

Change-Id: Ib63b4ead755127eaf03e3b303aab3c782ad02ed1
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
kernel/power/suspend.c