patch-pre2.0.14 linux/drivers/char/serial.c

Next file: linux/drivers/char/tty_io.c
Previous file: linux/drivers/char/random.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file pre2.0.13/linux/drivers/char/serial.c linux/drivers/char/serial.c
@@ -90,13 +90,6 @@
 
 #define _INLINE_ inline
   
-#ifdef MODULE
-static int io[PORT_MAX] = { 0, };
-static int irq[PORT_MAX]  = { 0, };
-static int type[PORT_MAX]  = { 0, };
-static int flags[PORT_MAX]  = { 0, };
-#endif
-
 #if defined(MODULE) && defined(SERIAL_DEBUG_MCOUNT)
 #define DBG_CNT(s) printk("(%s): [%x] refc=%d, serc=%d, ttyc=%d -> %s\n", \
  kdevname(tty->device), (info->flags), serial_refcount,info->count,tty->count,s)
@@ -2825,16 +2818,6 @@
 			info->icount.rng = info->icount.dcd = 0;
 		info->next_port = 0;
 		info->prev_port = 0;
-#ifdef MODULE
-		if(irq[i])
-			info->irq=irq[i];
-		if (io[i])
-			info->port=io[i];
-		if (type[i])
-			info->type = type[i];
-		if (flags[i])
-			info->flags = flags[i];
-#endif
 		if (info->irq == 2)
 			info->irq = 9;
 		if (info->type == PORT_UNKNOWN) {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this