diff options
author | Lin Ming <ming.m.lin@intel.com> | 2012-03-27 09:43:25 +0200 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2012-03-30 08:21:18 +0200 |
commit | b24e5098853653554baf6ec975b9e855f3d6e5c0 (patch) | |
tree | be93ad39b826c64907bb48dceea034db5b91fc24 /include | |
parent | ACPI: Add interface to register/unregister device to/from power resources (diff) | |
download | linux-b24e5098853653554baf6ec975b9e855f3d6e5c0.tar.xz linux-b24e5098853653554baf6ec975b9e855f3d6e5c0.zip |
ACPI, PCI: Move acpi_dev_run_wake() to ACPI core
acpi_dev_run_wake() is a generic function which can be used by
other subsystem too. Rename it to acpi_pm_device_run_wake, to be
consistent with acpi_pm_device_sleep_wake.
Then move it to ACPI core.
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/acpi/acpi_bus.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h index e168fffe1db5..f1c8ca60e824 100644 --- a/include/acpi/acpi_bus.h +++ b/include/acpi/acpi_bus.h @@ -394,8 +394,13 @@ static inline int acpi_pm_device_sleep_state(struct device *d, int *p) #endif #ifdef CONFIG_PM_SLEEP +int acpi_pm_device_run_wake(struct device *, bool); int acpi_pm_device_sleep_wake(struct device *, bool); #else +static inline int acpi_pm_device_run_wake(struct device *dev, bool enable) +{ + return -ENODEV; +} static inline int acpi_pm_device_sleep_wake(struct device *dev, bool enable) { return -ENODEV; |