PM: Improve error code of pm_notifier_call_chain()
authorAkinobu Mita <akinobu.mita@gmail.com>
Fri, 8 Jul 2011 18:53:36 +0000 (20:53 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Fri, 15 Jul 2011 21:58:20 +0000 (23:58 +0200)
This enables pm_notifier_call_chain() to get the actual error code
in the callback rather than always assume -EINVAL by converting all
PM notifier calls to return encapsulate error code with
notifier_from_errno().

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>

No differences found