diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-11-20 19:48:23 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-12-08 10:21:47 -0800 |
commit | 57ce46ef790bc67038322ed59c26f6d8eed9ee61 (patch) | |
tree | 0f389e4f90a7f0a3a6fad5cf092864cfc0530168 | |
parent | 899da70ca5dc094f506e82c60ef09ce5bd09bb94 (diff) | |
download | linux-stable-57ce46ef790bc67038322ed59c26f6d8eed9ee61.tar.gz linux-stable-57ce46ef790bc67038322ed59c26f6d8eed9ee61.tar.bz2 linux-stable-57ce46ef790bc67038322ed59c26f6d8eed9ee61.zip |
thinkpad-acpi: fix sign of ERESTARTSYS return
commit 80a8d1228e90349b4514e8c925c061fa5cbcea75 upstream.
The returned error should be negative
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/platform/x86/thinkpad_acpi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c index d287283b8aa5..e5a7eab5bb4c 100644 --- a/drivers/platform/x86/thinkpad_acpi.c +++ b/drivers/platform/x86/thinkpad_acpi.c @@ -5863,7 +5863,7 @@ static int brightness_write(char *buf) * Doing it this way makes the syscall restartable in case of EINTR */ rc = brightness_set(level); - return (rc == -EINTR)? ERESTARTSYS : rc; + return (rc == -EINTR)? -ERESTARTSYS : rc; } static struct ibm_struct brightness_driver_data = { |