mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
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>
This commit is contained in:
parent
bf9fd67a03
commit
e528e87689
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue