Skip to contentSkip to conversation

2.5.50: echo > /proc/acpi/sleep b0rken

PATCH Pavel Machek 2 participants 2 messages Nov 30, 2002 ACPI

lore
Share & tools
lore
#0 lore raw

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

drivers/acpi/sleep.c +1 -1
@@ -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] */
Signature · 2 lines
Worst form of spam? Adding advertisment signatures ala sourceforge.net.
What goes next? Inserting advertisment *into* email?
#1 lore raw
Quoted 3 lines

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.

my mistake. i'll fix it and submit asap

Signature · 1 line
aris