Selaa lähdekoodia

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>
David Howells 17 vuotta sitten
vanhempi
commit
f7a1b86095
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. 4 0
      include/acpi/acpi_bus.h

+ 4 - 0
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 */