diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-11-20 13:48:23 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-11-25 00:39:21 -0500 |
commit | 80a8d1228e90349b4514e8c925c061fa5cbcea75 (patch) | |
tree | 5e2fc15051acf881c363cd88ea230f8d909ff23a /drivers/platform | |
parent | 8b1edc57a617d00845806ca1fce1799c08d50920 (diff) |
thinkpad-acpi: fix sign of ERESTARTSYS return
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>
Cc: <stable@kernel.org>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/platform')
-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 d93108d148fc..03c0a56f0c8c 100644 --- a/drivers/platform/x86/thinkpad_acpi.c +++ b/drivers/platform/x86/thinkpad_acpi.c | |||
@@ -6313,7 +6313,7 @@ static int brightness_write(char *buf) | |||
6313 | * Doing it this way makes the syscall restartable in case of EINTR | 6313 | * Doing it this way makes the syscall restartable in case of EINTR |
6314 | */ | 6314 | */ |
6315 | rc = brightness_set(level); | 6315 | rc = brightness_set(level); |
6316 | return (rc == -EINTR)? ERESTARTSYS : rc; | 6316 | return (rc == -EINTR)? -ERESTARTSYS : rc; |
6317 | } | 6317 | } |
6318 | 6318 | ||
6319 | static struct ibm_struct brightness_driver_data = { | 6319 | static struct ibm_struct brightness_driver_data = { |