]> git.baikalelectronics.ru Git - kernel.git/commit
PM: Clear -EAGAIN in dpm_prepare
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Wed, 8 Jul 2009 11:26:05 +0000 (13:26 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Wed, 8 Jul 2009 11:26:05 +0000 (13:26 +0200)
commit76e5680999c5c73c5063d50182d4e7f30990e25f
tree5b6b9fb297cc3f59cd1777548e2fa82d4e1bb5f9
parent800a61d1a83794a66a6bca754b31014b07f51a39
PM: Clear -EAGAIN in dpm_prepare

When the last device in the dpm list is unregistered directly after its
prepare() callback returned with -EAGAIN, the return code is passed to
the calling function, resulting in a suspend failure. Prevent this by
clearing the return code after -EAGAIN.

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/base/power/main.c