|
@@ -24,7 +24,9 @@
|
|
|
|
|
|
u8 sleep_states[ACPI_S_STATE_COUNT];
|
|
|
|
|
|
+#ifdef CONFIG_PM_SLEEP
|
|
|
static u32 acpi_target_sleep_state = ACPI_STATE_S0;
|
|
|
+#endif
|
|
|
|
|
|
int acpi_sleep_prepare(u32 acpi_state)
|
|
|
{
|
|
@@ -299,6 +301,7 @@ int acpi_suspend(u32 acpi_state)
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
|
|
|
+#ifdef CONFIG_PM_SLEEP
|
|
|
/**
|
|
|
* acpi_pm_device_sleep_state - return preferred power state of ACPI device
|
|
|
* in the system sleep state given by %acpi_target_sleep_state
|
|
@@ -373,6 +376,7 @@ int acpi_pm_device_sleep_state(struct device *dev, int wake, int *d_min_p)
|
|
|
*d_min_p = d_min;
|
|
|
return d_max;
|
|
|
}
|
|
|
+#endif
|
|
|
|
|
|
static void acpi_power_off_prepare(void)
|
|
|
{
|