[PATCH] Fix acpi_pm_device_sleep_wake()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fix acpi_pm_device_sleep_wake() by providing a stub for CONFIG_PM_SLEEP=n.

Signed-off-by: David Howells <dhowells@xxxxxxxxxx>
---

 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 7ab5a61..a5ac0bc 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)
 		*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 */

--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux