projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
337001b
)
Fix acpi_pm_device_sleep_wake() by providing a stub for CONFIG_PM_SLEEP=n
author
David Howells
<dhowells@redhat.com>
Tue, 8 Jul 2008 14:00:54 +0000
(15:00 +0100)
committer
Jesse 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
patch
|
blob
|
history
diff --git
a/include/acpi/acpi_bus.h
b/include/acpi/acpi_bus.h
index 7ab5a611e43ff289c34a88a63b54ade498f4a8e7..a5ac0bc7f52eb1cc1849fb29afda135fb9dda6c1 100644
(file)
--- 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 */