* Fix /proc/acpi/events around suspend
@ 2005-10-17 10:04 Pavel Machek
0 siblings, 0 replies; only message in thread
From: Pavel Machek @ 2005-10-17 10:04 UTC (permalink / raw)
To: Andrew Morton, kernel list, len.brown-ral2JQCrhuEAvxtiuMwx3w,
acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Fix -EIO on /proc/acpi/events after suspends. This actually breaks
suspending by power button in many setups.
Signed-off-by: Pavel Machek <pavel-AlSwsSmVLrQ@public.gmane.org>
---
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(-)
diff --git a/drivers/acpi/event.c b/drivers/acpi/event.c
--- a/drivers/acpi/event.c
+++ b/drivers/acpi/event.c
@@ -58,9 +58,8 @@ acpi_system_read_event(struct file *file
return_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.
--
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-10-17 10:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-17 10:04 Fix /proc/acpi/events around suspend Pavel Machek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox