diff options
Diffstat (limited to 'include/acpi/acpi_bus.h')
-rw-r--r-- | include/acpi/acpi_bus.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h index a8080dfe7183..a635942bcd51 100644 --- a/include/acpi/acpi_bus.h +++ b/include/acpi/acpi_bus.h | |||
@@ -455,8 +455,13 @@ static inline int acpi_pm_device_sleep_state(struct device *d, int *p, int m) | |||
455 | #endif | 455 | #endif |
456 | 456 | ||
457 | #ifdef CONFIG_PM_RUNTIME | 457 | #ifdef CONFIG_PM_RUNTIME |
458 | int __acpi_device_run_wake(struct acpi_device *, bool); | ||
458 | int acpi_pm_device_run_wake(struct device *, bool); | 459 | int acpi_pm_device_run_wake(struct device *, bool); |
459 | #else | 460 | #else |
461 | static inline int __acpi_device_run_wake(struct acpi_device *adev, bool en) | ||
462 | { | ||
463 | return -ENODEV; | ||
464 | } | ||
460 | static inline int acpi_pm_device_run_wake(struct device *dev, bool enable) | 465 | static inline int acpi_pm_device_run_wake(struct device *dev, bool enable) |
461 | { | 466 | { |
462 | return -ENODEV; | 467 | return -ENODEV; |
@@ -464,8 +469,14 @@ static inline int acpi_pm_device_run_wake(struct device *dev, bool enable) | |||
464 | #endif | 469 | #endif |
465 | 470 | ||
466 | #ifdef CONFIG_PM_SLEEP | 471 | #ifdef CONFIG_PM_SLEEP |
472 | int __acpi_device_sleep_wake(struct acpi_device *, u32, bool); | ||
467 | int acpi_pm_device_sleep_wake(struct device *, bool); | 473 | int acpi_pm_device_sleep_wake(struct device *, bool); |
468 | #else | 474 | #else |
475 | static inline int __acpi_device_sleep_wake(struct acpi_device *adev, | ||
476 | u32 target_state, bool enable) | ||
477 | { | ||
478 | return -ENODEV; | ||
479 | } | ||
469 | static inline int acpi_pm_device_sleep_wake(struct device *dev, bool enable) | 480 | static inline int acpi_pm_device_sleep_wake(struct device *dev, bool enable) |
470 | { | 481 | { |
471 | return -ENODEV; | 482 | return -ENODEV; |