diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-12-08 14:00:44 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-12-08 14:00:44 -0500 |
commit | e3d857e1ae787a5e268bc89425aadae09c8e95a4 (patch) | |
tree | 65477adb3476db58d6619ae467a5994e13770a72 /drivers/acpi/device_pm.c | |
parent | cfc75ed68ba703f9d1c96705672c3dd944621f6b (diff) | |
parent | 2713775bf570b3ccc0f68130e6f1b623c9e191b7 (diff) |
Merge branch 'pm-runtime'
* pm-runtime: (25 commits)
i2c-omap / PM: Drop CONFIG_PM_RUNTIME from i2c-omap.c
dmaengine / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
drivers: sh / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
e1000e / igb / PM: Eliminate CONFIG_PM_RUNTIME
MMC / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
MFD / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
misc / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
media / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
input / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
iio / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
hsi / OMAP / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
i2c-hid / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
drm / exynos / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
gpio / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
hwrandom / exynos / PM: Use CONFIG_PM in #ifdef
block / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
USB / PM: Drop CONFIG_PM_RUNTIME from the USB core
PM: Merge the SET*_RUNTIME_PM_OPS() macros
PM / Kconfig: Do not select PM directly from Kconfig files
PCI / PM: Drop CONFIG_PM_RUNTIME from the PCI core
...
Diffstat (limited to 'drivers/acpi/device_pm.c')
-rw-r--r-- | drivers/acpi/device_pm.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/acpi/device_pm.c b/drivers/acpi/device_pm.c index 076af8149566..897640188acd 100644 --- a/drivers/acpi/device_pm.c +++ b/drivers/acpi/device_pm.c | |||
@@ -692,7 +692,6 @@ static int acpi_device_wakeup(struct acpi_device *adev, u32 target_state, | |||
692 | return 0; | 692 | return 0; |
693 | } | 693 | } |
694 | 694 | ||
695 | #ifdef CONFIG_PM_RUNTIME | ||
696 | /** | 695 | /** |
697 | * acpi_pm_device_run_wake - Enable/disable remote wakeup for given device. | 696 | * acpi_pm_device_run_wake - Enable/disable remote wakeup for given device. |
698 | * @dev: Device to enable/disable the platform to wake up. | 697 | * @dev: Device to enable/disable the platform to wake up. |
@@ -714,7 +713,6 @@ int acpi_pm_device_run_wake(struct device *phys_dev, bool enable) | |||
714 | return acpi_device_wakeup(adev, ACPI_STATE_S0, enable); | 713 | return acpi_device_wakeup(adev, ACPI_STATE_S0, enable); |
715 | } | 714 | } |
716 | EXPORT_SYMBOL(acpi_pm_device_run_wake); | 715 | EXPORT_SYMBOL(acpi_pm_device_run_wake); |
717 | #endif /* CONFIG_PM_RUNTIME */ | ||
718 | 716 | ||
719 | #ifdef CONFIG_PM_SLEEP | 717 | #ifdef CONFIG_PM_SLEEP |
720 | /** | 718 | /** |
@@ -773,7 +771,6 @@ static int acpi_dev_pm_full_power(struct acpi_device *adev) | |||
773 | acpi_device_set_power(adev, ACPI_STATE_D0) : 0; | 771 | acpi_device_set_power(adev, ACPI_STATE_D0) : 0; |
774 | } | 772 | } |
775 | 773 | ||
776 | #ifdef CONFIG_PM_RUNTIME | ||
777 | /** | 774 | /** |
778 | * acpi_dev_runtime_suspend - Put device into a low-power state using ACPI. | 775 | * acpi_dev_runtime_suspend - Put device into a low-power state using ACPI. |
779 | * @dev: Device to put into a low-power state. | 776 | * @dev: Device to put into a low-power state. |
@@ -855,7 +852,6 @@ int acpi_subsys_runtime_resume(struct device *dev) | |||
855 | return ret ? ret : pm_generic_runtime_resume(dev); | 852 | return ret ? ret : pm_generic_runtime_resume(dev); |
856 | } | 853 | } |
857 | EXPORT_SYMBOL_GPL(acpi_subsys_runtime_resume); | 854 | EXPORT_SYMBOL_GPL(acpi_subsys_runtime_resume); |
858 | #endif /* CONFIG_PM_RUNTIME */ | ||
859 | 855 | ||
860 | #ifdef CONFIG_PM_SLEEP | 856 | #ifdef CONFIG_PM_SLEEP |
861 | /** | 857 | /** |
@@ -1023,10 +1019,9 @@ EXPORT_SYMBOL_GPL(acpi_subsys_freeze); | |||
1023 | 1019 | ||
1024 | static struct dev_pm_domain acpi_general_pm_domain = { | 1020 | static struct dev_pm_domain acpi_general_pm_domain = { |
1025 | .ops = { | 1021 | .ops = { |
1026 | #ifdef CONFIG_PM_RUNTIME | 1022 | #ifdef CONFIG_PM |
1027 | .runtime_suspend = acpi_subsys_runtime_suspend, | 1023 | .runtime_suspend = acpi_subsys_runtime_suspend, |
1028 | .runtime_resume = acpi_subsys_runtime_resume, | 1024 | .runtime_resume = acpi_subsys_runtime_resume, |
1029 | #endif | ||
1030 | #ifdef CONFIG_PM_SLEEP | 1025 | #ifdef CONFIG_PM_SLEEP |
1031 | .prepare = acpi_subsys_prepare, | 1026 | .prepare = acpi_subsys_prepare, |
1032 | .complete = acpi_subsys_complete, | 1027 | .complete = acpi_subsys_complete, |
@@ -1038,6 +1033,7 @@ static struct dev_pm_domain acpi_general_pm_domain = { | |||
1038 | .poweroff_late = acpi_subsys_suspend_late, | 1033 | .poweroff_late = acpi_subsys_suspend_late, |
1039 | .restore_early = acpi_subsys_resume_early, | 1034 | .restore_early = acpi_subsys_resume_early, |
1040 | #endif | 1035 | #endif |
1036 | #endif | ||
1041 | }, | 1037 | }, |
1042 | }; | 1038 | }; |
1043 | 1039 | ||