ACPI / PM: Combine device suspend routines
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 14 Oct 2017 15:43:15 +0000 (17:43 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 16 Oct 2017 22:30:03 +0000 (00:30 +0200)
commitcbe25ce37d6c2623b5ac09128987e98848a54c6c
tree8b82cbdc110601aeadc410ec4dfd72545ecd9dda
parent048f35ff26a6c1b7297b43ec4376d9fa1872b4a9
ACPI / PM: Combine device suspend routines

On top of a previous change getting rid of the PM QoS flag
PM_QOS_FLAG_REMOTE_WAKEUP, combine two ACPI device suspend routines,
acpi_dev_runtime_suspend() and acpi_dev_suspend_late(), into one,
acpi_dev_suspend(), to eliminate some code duplication.

It also avoids enabling wakeup for devices handled by the ACPI
LPSS middle layer on driver removal.

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