ACPI / PM: Split code validating need for runtime resume in ->prepare()
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 3 Oct 2017 07:11:08 +0000 (09:11 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 11 Oct 2017 13:35:50 +0000 (15:35 +0200)
commitc2ebf788f927dcca72beead19fab5f5aba79a098
tree881d4e72a78ce0a0a50253be633265c3c4c73a15
parente4da817d2acbd05217adc0dc821bc8361e86ee30
ACPI / PM: Split code validating need for runtime resume in ->prepare()

Move the code dealing with validation of whether runtime resuming the
device is needed during system suspend.

In this way it becomes more clear for what circumstances ACPI is prevented
from trying the direct_complete path.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/device_pm.c