diff options
| -rw-r--r-- | drivers/base/power/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c index b0899118569b..e0dc4071e088 100644 --- a/drivers/base/power/main.c +++ b/drivers/base/power/main.c | |||
| @@ -365,6 +365,7 @@ void dpm_resume_noirq(pm_message_t state) | |||
| 365 | struct device *dev; | 365 | struct device *dev; |
| 366 | 366 | ||
| 367 | mutex_lock(&dpm_list_mtx); | 367 | mutex_lock(&dpm_list_mtx); |
| 368 | transition_started = false; | ||
| 368 | list_for_each_entry(dev, &dpm_list, power.entry) | 369 | list_for_each_entry(dev, &dpm_list, power.entry) |
| 369 | if (dev->power.status > DPM_OFF) { | 370 | if (dev->power.status > DPM_OFF) { |
| 370 | int error; | 371 | int error; |
| @@ -443,7 +444,6 @@ static void dpm_resume(pm_message_t state) | |||
| 443 | 444 | ||
| 444 | INIT_LIST_HEAD(&list); | 445 | INIT_LIST_HEAD(&list); |
| 445 | mutex_lock(&dpm_list_mtx); | 446 | mutex_lock(&dpm_list_mtx); |
| 446 | transition_started = false; | ||
| 447 | while (!list_empty(&dpm_list)) { | 447 | while (!list_empty(&dpm_list)) { |
| 448 | struct device *dev = to_device(dpm_list.next); | 448 | struct device *dev = to_device(dpm_list.next); |
| 449 | 449 | ||
