diff options
author | Adrian Bunk <bunk@stusta.de> | 2006-01-13 21:08:16 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-14 13:41:42 -0500 |
commit | 3824ba7df91745da6ebac703c87c3b801c34fdd0 (patch) | |
tree | d613f40e6812042956098d638940c975a920ff8c | |
parent | e1b114ee90040af5108973abd1a82babc4905868 (diff) |
[PATCH] remove unused tmp_buf_sem's
tmp_buf_sem sems to be a common name for something completely unused...
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de> ("usb portion")
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | arch/ia64/hp/sim/simserial.c | 1 | ||||
-rw-r--r-- | arch/ppc/4xx_io/serial_sicc.c | 1 | ||||
-rw-r--r-- | drivers/char/amiserial.c | 1 | ||||
-rw-r--r-- | drivers/char/esp.c | 1 | ||||
-rw-r--r-- | drivers/char/generic_serial.c | 1 | ||||
-rw-r--r-- | drivers/char/riscom8.c | 1 | ||||
-rw-r--r-- | drivers/char/serial167.c | 1 | ||||
-rw-r--r-- | drivers/char/specialix.c | 3 | ||||
-rw-r--r-- | drivers/char/synclink.c | 1 | ||||
-rw-r--r-- | drivers/sbus/char/aurora.c | 1 | ||||
-rw-r--r-- | drivers/serial/68328serial.c | 1 | ||||
-rw-r--r-- | drivers/usb/serial/pl2303.c | 2 |
12 files changed, 0 insertions, 15 deletions
diff --git a/arch/ia64/hp/sim/simserial.c b/arch/ia64/hp/sim/simserial.c index 27f23fa5ca15..626cdc83668b 100644 --- a/arch/ia64/hp/sim/simserial.c +++ b/arch/ia64/hp/sim/simserial.c | |||
@@ -108,7 +108,6 @@ static struct async_struct *IRQ_ports[NR_IRQS]; | |||
108 | static struct console *console; | 108 | static struct console *console; |
109 | 109 | ||
110 | static unsigned char *tmp_buf; | 110 | static unsigned char *tmp_buf; |
111 | static DECLARE_MUTEX(tmp_buf_sem); | ||
112 | 111 | ||
113 | extern struct console *console_drivers; /* from kernel/printk.c */ | 112 | extern struct console *console_drivers; /* from kernel/printk.c */ |
114 | 113 | ||
diff --git a/arch/ppc/4xx_io/serial_sicc.c b/arch/ppc/4xx_io/serial_sicc.c index ebc4db8fcc63..8ace2a1f3b48 100644 --- a/arch/ppc/4xx_io/serial_sicc.c +++ b/arch/ppc/4xx_io/serial_sicc.c | |||
@@ -215,7 +215,6 @@ static struct tty_driver *siccnormal_driver; | |||
215 | * memory if large numbers of serial ports are open. | 215 | * memory if large numbers of serial ports are open. |
216 | */ | 216 | */ |
217 | static u_char *tmp_buf; | 217 | static u_char *tmp_buf; |
218 | static DECLARE_MUTEX(tmp_buf_sem); | ||
219 | 218 | ||
220 | #define HIGH_BITS_OFFSET ((sizeof(long)-sizeof(int))*8) | 219 | #define HIGH_BITS_OFFSET ((sizeof(long)-sizeof(int))*8) |
221 | 220 | ||
diff --git a/drivers/char/amiserial.c b/drivers/char/amiserial.c index 667a21c72edb..7ac365b5d9ec 100644 --- a/drivers/char/amiserial.c +++ b/drivers/char/amiserial.c | |||
@@ -129,7 +129,6 @@ static struct serial_state rs_table[1]; | |||
129 | * memory if large numbers of serial ports are open. | 129 | * memory if large numbers of serial ports are open. |
130 | */ | 130 | */ |
131 | static unsigned char *tmp_buf; | 131 | static unsigned char *tmp_buf; |
132 | static DECLARE_MUTEX(tmp_buf_sem); | ||
133 | 132 | ||
134 | #include <asm/uaccess.h> | 133 | #include <asm/uaccess.h> |
135 | 134 | ||
diff --git a/drivers/char/esp.c b/drivers/char/esp.c index e469f641c728..dd5dc8fa490d 100644 --- a/drivers/char/esp.c +++ b/drivers/char/esp.c | |||
@@ -160,7 +160,6 @@ static void rs_wait_until_sent(struct tty_struct *, int); | |||
160 | * memory if large numbers of serial ports are open. | 160 | * memory if large numbers of serial ports are open. |
161 | */ | 161 | */ |
162 | static unsigned char *tmp_buf; | 162 | static unsigned char *tmp_buf; |
163 | static DECLARE_MUTEX(tmp_buf_sem); | ||
164 | 163 | ||
165 | static inline int serial_paranoia_check(struct esp_struct *info, | 164 | static inline int serial_paranoia_check(struct esp_struct *info, |
166 | char *name, const char *routine) | 165 | char *name, const char *routine) |
diff --git a/drivers/char/generic_serial.c b/drivers/char/generic_serial.c index 204a7302a4a9..e38a5f0e07bb 100644 --- a/drivers/char/generic_serial.c +++ b/drivers/char/generic_serial.c | |||
@@ -34,7 +34,6 @@ | |||
34 | #define DEBUG | 34 | #define DEBUG |
35 | 35 | ||
36 | static char * tmp_buf; | 36 | static char * tmp_buf; |
37 | static DECLARE_MUTEX(tmp_buf_sem); | ||
38 | 37 | ||
39 | static int gs_debug; | 38 | static int gs_debug; |
40 | 39 | ||
diff --git a/drivers/char/riscom8.c b/drivers/char/riscom8.c index 050e70ee5920..119e629656b7 100644 --- a/drivers/char/riscom8.c +++ b/drivers/char/riscom8.c | |||
@@ -82,7 +82,6 @@ | |||
82 | static struct riscom_board * IRQ_to_board[16]; | 82 | static struct riscom_board * IRQ_to_board[16]; |
83 | static struct tty_driver *riscom_driver; | 83 | static struct tty_driver *riscom_driver; |
84 | static unsigned char * tmp_buf; | 84 | static unsigned char * tmp_buf; |
85 | static DECLARE_MUTEX(tmp_buf_sem); | ||
86 | 85 | ||
87 | static unsigned long baud_table[] = { | 86 | static unsigned long baud_table[] = { |
88 | 0, 50, 75, 110, 134, 150, 200, 300, 600, 1200, 1800, 2400, 4800, | 87 | 0, 50, 75, 110, 134, 150, 200, 300, 600, 1200, 1800, 2400, 4800, |
diff --git a/drivers/char/serial167.c b/drivers/char/serial167.c index f36342ae8e7e..037c940ac71b 100644 --- a/drivers/char/serial167.c +++ b/drivers/char/serial167.c | |||
@@ -129,7 +129,6 @@ struct cyclades_port cy_port[] = { | |||
129 | * memory if large numbers of serial ports are open. | 129 | * memory if large numbers of serial ports are open. |
130 | */ | 130 | */ |
131 | static unsigned char *tmp_buf = 0; | 131 | static unsigned char *tmp_buf = 0; |
132 | DECLARE_MUTEX(tmp_buf_sem); | ||
133 | 132 | ||
134 | /* | 133 | /* |
135 | * This is used to look up the divisor speeds and the timeouts | 134 | * This is used to look up the divisor speeds and the timeouts |
diff --git a/drivers/char/specialix.c b/drivers/char/specialix.c index 0a574bdbce36..5343e9fc6ab7 100644 --- a/drivers/char/specialix.c +++ b/drivers/char/specialix.c | |||
@@ -184,7 +184,6 @@ static int sx_poll = HZ; | |||
184 | 184 | ||
185 | static struct tty_driver *specialix_driver; | 185 | static struct tty_driver *specialix_driver; |
186 | static unsigned char * tmp_buf; | 186 | static unsigned char * tmp_buf; |
187 | static DECLARE_MUTEX(tmp_buf_sem); | ||
188 | 187 | ||
189 | static unsigned long baud_table[] = { | 188 | static unsigned long baud_table[] = { |
190 | 0, 50, 75, 110, 134, 150, 200, 300, 600, 1200, 1800, 2400, 4800, | 189 | 0, 50, 75, 110, 134, 150, 200, 300, 600, 1200, 1800, 2400, 4800, |
@@ -2556,8 +2555,6 @@ static int __init specialix_init_module(void) | |||
2556 | 2555 | ||
2557 | func_enter(); | 2556 | func_enter(); |
2558 | 2557 | ||
2559 | init_MUTEX(&tmp_buf_sem); /* Init de the semaphore - pvdl */ | ||
2560 | |||
2561 | if (iobase[0] || iobase[1] || iobase[2] || iobase[3]) { | 2558 | if (iobase[0] || iobase[1] || iobase[2] || iobase[3]) { |
2562 | for(i = 0; i < SX_NBOARD; i++) { | 2559 | for(i = 0; i < SX_NBOARD; i++) { |
2563 | sx_board[i].base = iobase[i]; | 2560 | sx_board[i].base = iobase[i]; |
diff --git a/drivers/char/synclink.c b/drivers/char/synclink.c index 9f1b466c4f84..ede688a4e141 100644 --- a/drivers/char/synclink.c +++ b/drivers/char/synclink.c | |||
@@ -951,7 +951,6 @@ static void* mgsl_get_text_ptr(void) | |||
951 | * memory if large numbers of serial ports are open. | 951 | * memory if large numbers of serial ports are open. |
952 | */ | 952 | */ |
953 | static unsigned char *tmp_buf; | 953 | static unsigned char *tmp_buf; |
954 | static DECLARE_MUTEX(tmp_buf_sem); | ||
955 | 954 | ||
956 | static inline int mgsl_paranoia_check(struct mgsl_struct *info, | 955 | static inline int mgsl_paranoia_check(struct mgsl_struct *info, |
957 | char *name, const char *routine) | 956 | char *name, const char *routine) |
diff --git a/drivers/sbus/char/aurora.c b/drivers/sbus/char/aurora.c index 92e6c5639dd3..015db40ad8a4 100644 --- a/drivers/sbus/char/aurora.c +++ b/drivers/sbus/char/aurora.c | |||
@@ -92,7 +92,6 @@ static struct Aurora_port aurora_port[AURORA_TNPORTS] = { | |||
92 | 92 | ||
93 | /* no longer used. static struct Aurora_board * IRQ_to_board[16] = { NULL, } ;*/ | 93 | /* no longer used. static struct Aurora_board * IRQ_to_board[16] = { NULL, } ;*/ |
94 | static unsigned char * tmp_buf = NULL; | 94 | static unsigned char * tmp_buf = NULL; |
95 | static DECLARE_MUTEX(tmp_buf_sem); | ||
96 | 95 | ||
97 | DECLARE_TASK_QUEUE(tq_aurora); | 96 | DECLARE_TASK_QUEUE(tq_aurora); |
98 | 97 | ||
diff --git a/drivers/serial/68328serial.c b/drivers/serial/68328serial.c index 4dd5c3f98167..8cbf0fc5a225 100644 --- a/drivers/serial/68328serial.c +++ b/drivers/serial/68328serial.c | |||
@@ -143,7 +143,6 @@ static int m68328_console_cbaud = DEFAULT_CBAUD; | |||
143 | * memory if large numbers of serial ports are open. | 143 | * memory if large numbers of serial ports are open. |
144 | */ | 144 | */ |
145 | static unsigned char tmp_buf[SERIAL_XMIT_SIZE]; /* This is cheating */ | 145 | static unsigned char tmp_buf[SERIAL_XMIT_SIZE]; /* This is cheating */ |
146 | DECLARE_MUTEX(tmp_buf_sem); | ||
147 | 146 | ||
148 | static inline int serial_paranoia_check(struct m68k_serial *info, | 147 | static inline int serial_paranoia_check(struct m68k_serial *info, |
149 | char *name, const char *routine) | 148 | char *name, const char *routine) |
diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c index 9ffff1938239..0eb883f44ada 100644 --- a/drivers/usb/serial/pl2303.c +++ b/drivers/usb/serial/pl2303.c | |||
@@ -43,8 +43,6 @@ static int debug; | |||
43 | #define PL2303_BUF_SIZE 1024 | 43 | #define PL2303_BUF_SIZE 1024 |
44 | #define PL2303_TMP_BUF_SIZE 1024 | 44 | #define PL2303_TMP_BUF_SIZE 1024 |
45 | 45 | ||
46 | static DECLARE_MUTEX(pl2303_tmp_buf_sem); | ||
47 | |||
48 | struct pl2303_buf { | 46 | struct pl2303_buf { |
49 | unsigned int buf_size; | 47 | unsigned int buf_size; |
50 | char *buf_buf; | 48 | char *buf_buf; |