]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/acpi/acpi_bus.h
Fix acpi_pm_device_sleep_wake() by providing a stub for CONFIG_PM_SLEEP=n
[linux-2.6-omap-h63xx.git] / 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 */