Fix /proc/acpi/events around suspend
Fix -EIO on /proc/acpi/events after suspends. This actually breaks suspending by power button in many setups.
Signed-off-by Pavel Machek <[email protected]>
---
commit a6660667ecd52e68a1b51ab9135d722d974ba171 tree e915e150ec69ec6b1cf15a8d9302bf06665ad1f6 parent cce1c483de7404e3d6320d650af23373be4c39af author <pavel@amd.(none)> Tue, 11 Oct 2005 23:10:55 +0200 committer <pavel@amd.(none)> Tue, 11 Oct 2005 23:10:55 +0200
drivers/acpi/event.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-)
drivers/acpi/event.c +2 -3
@@ -58,9 +58,8 @@ acpi_system_read_event(struct file *filereturn_VALUE (-EAGAIN ); result =acpi_bus_receive_event (&event); -if (result) { -return_VALUE (-EIO ); - } +if (result) +return_VALUE (result); chars_remaining = sprintf(str, "%s %s %08x %08x\n", event.device_class ? event.
Signature · 7 lines
Thanks, Sharp! ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl