diff options
author | David Howells <dhowells@redhat.com> | 2008-07-08 10:00:54 -0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2008-07-08 13:39:12 -0400 |
commit | f7a1b86095bf7fd1578ef54067545b9cb7084713 (patch) | |
tree | d3f58a912333ddc3966484ae1260ad2dd941cadd | |
parent | 337001b6c42938f49a880b1b8306c3ed771a7e61 (diff) |
Fix acpi_pm_device_sleep_wake() by providing a stub for CONFIG_PM_SLEEP=n
So that one of the several config option permutations will build again.
Tested-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
-rw-r--r-- | include/acpi/acpi_bus.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h index 7ab5a611e43f..a5ac0bc7f52e 100644 --- a/include/acpi/acpi_bus.h +++ b/include/acpi/acpi_bus.h | |||
@@ -388,6 +388,10 @@ static inline int acpi_pm_device_sleep_state(struct device *d, int *p) | |||
388 | *p = ACPI_STATE_D0; | 388 | *p = ACPI_STATE_D0; |
389 | return ACPI_STATE_D3; | 389 | return ACPI_STATE_D3; |
390 | } | 390 | } |
391 | static inline int acpi_pm_device_sleep_wake(struct device *dev, bool enable) | ||
392 | { | ||
393 | return -ENODEV; | ||
394 | } | ||
391 | #endif /* !CONFIG_PM_SLEEP */ | 395 | #endif /* !CONFIG_PM_SLEEP */ |
392 | 396 | ||
393 | #endif /* CONFIG_ACPI */ | 397 | #endif /* CONFIG_ACPI */ |