From: Adrian Bunk The patch below removes unused code from drivers/char/cyclades.c Signed-off-by: Adrian Bunk Signed-off-by: Andrew Morton --- 25-akpm/drivers/char/cyclades.c | 21 --------------------- 1 files changed, 21 deletions(-) diff -puN drivers/char/cyclades.c~char-cycladesc-remove-unused-code-fwd drivers/char/cyclades.c --- 25/drivers/char/cyclades.c~char-cycladesc-remove-unused-code-fwd 2004-11-17 00:35:43.990668912 -0800 +++ 25-akpm/drivers/char/cyclades.c 2004-11-17 00:35:43.998667696 -0800 @@ -758,7 +758,6 @@ static int cy_next_channel; /* next mino * allocated when the first cy_open occurs. */ static unsigned char *tmp_buf; -DECLARE_MUTEX(tmp_buf_sem); /* * This is used to look up the divisor speeds and the timeouts @@ -5538,24 +5537,4 @@ cy_cleanup_module(void) module_init(cy_init); module_exit(cy_cleanup_module); -#ifndef MODULE -/* called by linux/init/main.c to parse command line options */ -void -cy_setup(char *str, int *ints) -{ -#ifdef CONFIG_ISA - int i, j; - - for (i = 0 ; i < NR_ISA_ADDRS ; i++) { - if (cy_isa_addresses[i] == 0) break; - } - for (j = 1; j <= ints[0]; j++){ - if ( i < NR_ISA_ADDRS ){ - cy_isa_addresses[i++] = ints[j]; - } - } -#endif /* CONFIG_ISA */ -} /* cy_setup */ -#endif /* MODULE */ - MODULE_LICENSE("GPL"); _