From: Romit Dasgupta Date: Wed, 28 Oct 2009 21:56:02 +0000 (+0100) Subject: PM: Fix warning on suspend errors X-Git-Tag: v2.6.32-rc6~3^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e528e876897217465d5cd7cb28130d8489596e34;p=platform%2Fkernel%2Flinux-3.10.git PM: Fix warning on suspend errors Fixes the point where we need to complete the power transition when device suspend fails, so that we don't print warnings about devices added to the device hierarchy after a failing suspend. [rjw: Modified changelog.] Signed-off-by: Romit Dasgupta Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c index e0dc407..8aa2443 100644 --- a/drivers/base/power/main.c +++ b/drivers/base/power/main.c @@ -511,6 +511,7 @@ static void dpm_complete(pm_message_t state) INIT_LIST_HEAD(&list); mutex_lock(&dpm_list_mtx); + transition_started = false; while (!list_empty(&dpm_list)) { struct device *dev = to_device(dpm_list.prev);