]> err.no Git - linux-2.6/commitdiff
Fix acpi_pm_device_sleep_wake() by providing a stub for CONFIG_PM_SLEEP=n
authorDavid Howells <dhowells@redhat.com>
Tue, 8 Jul 2008 14:00:54 +0000 (15:00 +0100)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 8 Jul 2008 17:39:12 +0000 (10:39 -0700)
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>
include/acpi/acpi_bus.h

index 7ab5a611e43ff289c34a88a63b54ade498f4a8e7..a5ac0bc7f52eb1cc1849fb29afda135fb9dda6c1 100644 (file)
@@ -388,6 +388,10 @@ static inline int acpi_pm_device_sleep_state(struct device *d, int *p)
                *p = ACPI_STATE_D0;
        return ACPI_STATE_D3;
 }
+static inline int acpi_pm_device_sleep_wake(struct device *dev, bool enable)
+{
+       return -ENODEV;
+}
 #endif /* !CONFIG_PM_SLEEP */
 
 #endif                         /* CONFIG_ACPI */