Commit e528e876897217465d5cd7cb28130d8489596e34

Authored by Romit Dasgupta
Committed by Rafael J. Wysocki
1 parent bf9fd67a03

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 <romit@ti.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

drivers/base/power/main.c
... ... @@ -511,6 +511,7 @@
511 511  
512 512 INIT_LIST_HEAD(&list);
513 513 mutex_lock(&dpm_list_mtx);
  514 + transition_started = false;
514 515 while (!list_empty(&dpm_list)) {
515 516 struct device *dev = to_device(dpm_list.prev);
516 517