Having two acpi_power_off functions is extremely confusing... And the
second one does not even power the machine off ;-). Please apply,
Pavel
diff -ur clean-2.5.35/drivers/acpi/power.c linux-2.5.35/drivers/acpi/power.c
--- clean-2.5.35/drivers/acpi/power.c 2002-09-16 04:18:30.000000000 +0200
+++ linux-2.5.35/drivers/acpi/power.c 2002-10-02 14:50:41.000000000 +0200
@@ -210,7 +210,7 @@
static int
-acpi_power_off (
+acpi_power_off_device (
acpi_handle handle)
{
int result = 0;
@@ -218,7 +218,7 @@
struct acpi_device *device = NULL;
struct acpi_power_resource *resource = NULL;
- ACPI_FUNCTION_TRACE("acpi_power_off");
+ ACPI_FUNCTION_TRACE("acpi_power_off_device");
result = acpi_power_get_context(handle, &resource);
if (result)
@@ -351,7 +350,7 @@
* Then we dereference all power resources used in the current list.
*/
for (i=0; i<cl->count; i++) {
- result = acpi_power_off(cl->handles[i]);
+ result = acpi_power_off_device(cl->handles[i]);
if (result)
goto end;
}
-- Casualities in World Trade Center: ~3k dead inside the building, cryptography in U.S.A. and free speech in Czech Republic. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/