ACPI suspend: build fix for ACPI_SLEEP=n && XEN_SAVE_RESTORE=y.
authorRafael J. Wysocki <rjw@sisk.pl>
Thu, 23 Oct 2008 19:46:43 +0000 (21:46 +0200)
committerLen Brown <len.brown@intel.com>
Sat, 25 Oct 2008 08:07:13 +0000 (04:07 -0400)
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/sleep/main.c

index 26571bafb158a66380308ff04381f0744aa98325..80c0868d0480e76a0eced99a00a163f98114353c 100644 (file)
@@ -163,6 +163,8 @@ static void acpi_pm_end(void)
        acpi_target_sleep_state = ACPI_STATE_S0;
        acpi_sleep_tts_switch(acpi_target_sleep_state);
 }
+#else /* !CONFIG_ACPI_SLEEP */
+#define acpi_target_sleep_state        ACPI_STATE_S0
 #endif /* CONFIG_ACPI_SLEEP */
 
 #ifdef CONFIG_SUSPEND