aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/mxser_new.c
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2006-12-08 05:38:32 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-08 11:28:54 -0500
commit5dbda701fe9eba7a36205326c4a3e72a8206d576 (patch)
treef7d8a818c101e544cd7bf6dcc7b8a2b82010fa05 /drivers/char/mxser_new.c
parentb1d1c8dd35aa95fbeb7051eee9811fc2475a81f4 (diff)
[PATCH] Char: mxser_new, delete ttys and termios
- Driver uses global tty_struct array, which tries to assign to the tty_driver's ttys. - the very same thing for termios - the same for termios_locked Kill such constructions. Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char/mxser_new.c')
-rw-r--r--drivers/char/mxser_new.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/char/mxser_new.c b/drivers/char/mxser_new.c
index 7709cd865fff..792524ab348e 100644
--- a/drivers/char/mxser_new.c
+++ b/drivers/char/mxser_new.c
@@ -313,9 +313,6 @@ static int mxserBoardCAP[MXSER_BOARDS] = {
313 313
314static struct mxser_board mxser_boards[MXSER_BOARDS]; 314static struct mxser_board mxser_boards[MXSER_BOARDS];
315static struct tty_driver *mxvar_sdriver; 315static struct tty_driver *mxvar_sdriver;
316static struct tty_struct *mxvar_tty[MXSER_PORTS + 1];
317static struct termios *mxvar_termios[MXSER_PORTS + 1];
318static struct termios *mxvar_termios_locked[MXSER_PORTS + 1];
319static struct mxser_log mxvar_log; 316static struct mxser_log mxvar_log;
320static int mxvar_diagflag; 317static int mxvar_diagflag;
321static unsigned char mxser_msr[MXSER_PORTS + 1]; 318static unsigned char mxser_msr[MXSER_PORTS + 1];
@@ -2652,9 +2649,6 @@ static int __init mxser_module_init(void)
2652 mxvar_sdriver->init_termios.c_cflag = B9600|CS8|CREAD|HUPCL|CLOCAL; 2649 mxvar_sdriver->init_termios.c_cflag = B9600|CS8|CREAD|HUPCL|CLOCAL;
2653 mxvar_sdriver->flags = TTY_DRIVER_REAL_RAW|TTY_DRIVER_DYNAMIC_DEV; 2650 mxvar_sdriver->flags = TTY_DRIVER_REAL_RAW|TTY_DRIVER_DYNAMIC_DEV;
2654 tty_set_operations(mxvar_sdriver, &mxser_ops); 2651 tty_set_operations(mxvar_sdriver, &mxser_ops);
2655 mxvar_sdriver->ttys = mxvar_tty;
2656 mxvar_sdriver->termios = mxvar_termios;
2657 mxvar_sdriver->termios_locked = mxvar_termios_locked;
2658 2652
2659 retval = tty_register_driver(mxvar_sdriver); 2653 retval = tty_register_driver(mxvar_sdriver);
2660 if (retval) { 2654 if (retval) {