Re: ACPI power off regression in 2.6.23-rc8 (NOT in rc7)

Daniel Ritz
2007-09-25T11:02:31Z

[-- Attachment #1: Type: text/plain, Size: 293 bytes --]

does that one help?

[ as attachment since i'm on webmail ]

ACPI: acpi_sleep_prepare() should not depent on CONFIG_SUSPEND
Signed-off-by: Daniel Ritz <daniel.ritz@gmx.ch>
--
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser

[-- Attachment #2: acpi-sleep.patch --]
[-- Type: application/octet-stream, Size: 508 bytes --]

diff --git a/drivers/acpi/sleep/main.c b/drivers/acpi/sleep/main.c
index 85633c5..b9c6fcb 100644
--- a/drivers/acpi/sleep/main.c
+++ b/drivers/acpi/sleep/main.c
@@ -59,6 +59,7 @@ static int acpi_pm_set_target(suspend_state_t pm_state)
}
return error;
}
+#endif /* CONFIG_SUSPEND */

int acpi_sleep_prepare(u32 acpi_state)
{
@@ -81,6 +82,7 @@ int acpi_sleep_prepare(u32 acpi_state)
return 0;
}

+#ifdef CONFIG_SUSPEND
/**
* acpi_pm_prepare - Do preliminary suspend work.
* @pm_state: ignored