2.5.50: echo > /proc/acpi/sleep b0rken

Pavel Machek (pavel@ucw.cz)
Sat, 30 Nov 2002 20:49:34 +0100


Hi!

I believe this is needed, otherwise echo > /proc/acpi/sleep does not
work. I'm not 200% sure this is correct fix, through, and it
definitely needs to be fixed at *way* more places.
Pavel

--- clean/drivers/acpi/sleep.c 2002-11-29 21:16:34.000000000 +0100
+++ linux-swsusp/drivers/acpi/sleep.c 2002-11-30 00:27:14.000000000 +0100
@@ -674,7 +675,7 @@
ACPI_SYSTEM_FILE_SLEEP));
else {
entry->proc_fops = &acpi_system_sleep_fops;
- entry->write_proc = acpi_system_write_sleep;
+ entry->proc_fops->write = acpi_system_write_sleep;
}

/* 'alarm' [R/W] */

-- 
Worst form of spam? Adding advertisment signatures ala sourceforge.net.
What goes next? Inserting advertisment *into* email?
-
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/