diff options
-rw-r--r-- | drivers/sbus/char/bbc_envctrl.c | 3 | ||||
-rw-r--r-- | drivers/sbus/char/envctrl.c | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/drivers/sbus/char/bbc_envctrl.c b/drivers/sbus/char/bbc_envctrl.c index d44205d52bf3..d89f83f769f5 100644 --- a/drivers/sbus/char/bbc_envctrl.c +++ b/drivers/sbus/char/bbc_envctrl.c | |||
@@ -5,6 +5,7 @@ | |||
5 | */ | 5 | */ |
6 | 6 | ||
7 | #define __KERNEL_SYSCALLS__ | 7 | #define __KERNEL_SYSCALLS__ |
8 | static int errno; | ||
8 | 9 | ||
9 | #include <linux/kernel.h> | 10 | #include <linux/kernel.h> |
10 | #include <linux/kthread.h> | 11 | #include <linux/kthread.h> |
@@ -13,8 +14,6 @@ | |||
13 | #include <linux/delay.h> | 14 | #include <linux/delay.h> |
14 | #include <asm/oplib.h> | 15 | #include <asm/oplib.h> |
15 | #include <asm/ebus.h> | 16 | #include <asm/ebus.h> |
16 | static int errno; | ||
17 | #include <asm/unistd.h> | ||
18 | 17 | ||
19 | #include "bbc_i2c.h" | 18 | #include "bbc_i2c.h" |
20 | #include "max1617.h" | 19 | #include "max1617.h" |
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 |