diff options
author | viro@ZenIV.linux.org.uk <viro@ZenIV.linux.org.uk> | 2005-09-09 17:09:08 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-10 13:16:27 -0400 |
commit | 0aaaa028297a0e2aed9671419a11d8e17510cb51 (patch) | |
tree | 0588fcac9a57c14a244d5efe32211d25e903b864 /drivers/sbus/char/envctrl.c | |
parent | fe08ac3178243fbed61f24878ffcf5cfb53fceb1 (diff) |
[PATCH] envctrl fixes
envctrl doesn't need unistd.h; moreover, since it declares errno static
gcc4 gets very unhappy about including unistd.h.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/sbus/char/envctrl.c')
-rw-r--r-- | drivers/sbus/char/envctrl.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/sbus/char/envctrl.c b/drivers/sbus/char/envctrl.c index d765cc1bf060..b0cc3c2588fd 100644 --- a/drivers/sbus/char/envctrl.c +++ b/drivers/sbus/char/envctrl.c | |||
@@ -20,6 +20,7 @@ | |||
20 | */ | 20 | */ |
21 | 21 | ||
22 | #define __KERNEL_SYSCALLS__ | 22 | #define __KERNEL_SYSCALLS__ |
23 | static int errno; | ||
23 | 24 | ||
24 | #include <linux/config.h> | 25 | #include <linux/config.h> |
25 | #include <linux/module.h> | 26 | #include <linux/module.h> |
@@ -38,9 +39,6 @@ | |||
38 | #include <asm/uaccess.h> | 39 | #include <asm/uaccess.h> |
39 | #include <asm/envctrl.h> | 40 | #include <asm/envctrl.h> |
40 | 41 | ||
41 | static int errno; | ||
42 | #include <asm/unistd.h> | ||
43 | |||
44 | #define ENVCTRL_MINOR 162 | 42 | #define ENVCTRL_MINOR 162 |
45 | 43 | ||
46 | #define PCF8584_ADDRESS 0x55 | 44 | #define PCF8584_ADDRESS 0x55 |