PM / Domains: Propagate start and restore errors during runtime resume
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tue, 1 Mar 2016 23:20:38 +0000 (01:20 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 8 Mar 2016 23:37:59 +0000 (00:37 +0100)
commit076395cae20381340a0e92ad3d76fe3e280f8a1c
tree800c5e28b6971666f43fe5b585894bbaf0c65d06
parent0ba554e45c674181a3e5c42c7a6cccbbc75a0dd7
PM / Domains: Propagate start and restore errors during runtime resume

During runtime resume the return values of the start and restore steps
are ignored. As a result drivers are not notified of runtime resume
failures and can't propagate them up. Fix it by returning an error if
either the start or restore step fails, and clean up properly in the
error path.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Kevin Hilman <khilman@baylibre.com>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/domain.c