projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b1edc5
)
thinkpad-acpi: fix sign of ERESTARTSYS return
author
Roel Kluin
<
[email protected]
>
Fri, 20 Nov 2009 18:48:23 +0000
(19:48 +0100)
committer
Len Brown
<
[email protected]
>
Wed, 25 Nov 2009 05:39:21 +0000
(
00:39
-0500)
The returned error should be negative
Signed-off-by: Roel Kluin <
[email protected]
>
Acked-by: Henrique de Moraes Holschuh <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Cc: <
[email protected]
>
Signed-off-by: Len Brown <
[email protected]
>
drivers/platform/x86/thinkpad_acpi.c
patch
|
blob
|
history
diff --git
a/drivers/platform/x86/thinkpad_acpi.c
b/drivers/platform/x86/thinkpad_acpi.c
index d93108d148fc14cebff5ca14202ff161bb3551b0..03c0a56f0c8c8584afb7669f7d1178c53a7beeb7 100644
(file)
--- a/
drivers/platform/x86/thinkpad_acpi.c
+++ b/
drivers/platform/x86/thinkpad_acpi.c
@@
-6313,7
+6313,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 = {