From: Rafael J. Wysocki Date: Thu, 23 Oct 2008 19:46:43 +0000 (+0200) Subject: ACPI suspend: build fix for ACPI_SLEEP=n && XEN_SAVE_RESTORE=y. X-Git-Tag: v2.6.28-rc3~109^2~3 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=92daa7b53b76984565dfdfda5d9c679884121fb2;p=linux-2.6-omap-h63xx.git ACPI suspend: build fix for ACPI_SLEEP=n && XEN_SAVE_RESTORE=y. Signed-off-by: Rafael J. Wysocki Signed-off-by: Len Brown --- diff --git a/drivers/acpi/sleep/main.c b/drivers/acpi/sleep/main.c index 26571bafb15..80c0868d048 100644 --- a/drivers/acpi/sleep/main.c +++ b/drivers/acpi/sleep/main.c @@ -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