Skip to content

Commit

Permalink
PM: Fix warning on suspend errors
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
  • Loading branch information
Romit Dasgupta authored and rjwysocki committed Nov 3, 2009
1 parent bf9fd67 commit e528e87
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/base/power/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit e528e87

Please sign in to comment.