diff options
author | Kirill Smelkov <kirr@mns.spb.ru> | 2005-11-07 03:59:20 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-07 10:53:36 -0500 |
commit | 57432345b644ef92dcd0a378db6bc40ab0e7f314 (patch) | |
tree | 449bd88a928f228db3b52bba5975ed809ccc32b7 /drivers | |
parent | b9b0332fcf122809b9e40e2f0051eebb295ededf (diff) |
[PATCH] serial moxa: cleanup mxser_init
Remove explicit tty_driver ops initialisation, because this is already done
by tty_set_operations.
Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru>
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')
-rw-r--r-- | drivers/char/mxser.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/drivers/char/mxser.c b/drivers/char/mxser.c index 45d012d85e8c..4b783d9bbd59 100644 --- a/drivers/char/mxser.c +++ b/drivers/char/mxser.c | |||
@@ -470,6 +470,8 @@ static struct tty_operations mxser_ops = { | |||
470 | .stop = mxser_stop, | 470 | .stop = mxser_stop, |
471 | .start = mxser_start, | 471 | .start = mxser_start, |
472 | .hangup = mxser_hangup, | 472 | .hangup = mxser_hangup, |
473 | .break_ctl = mxser_rs_break, | ||
474 | .wait_until_sent = mxser_wait_until_sent, | ||
473 | .tiocmget = mxser_tiocmget, | 475 | .tiocmget = mxser_tiocmget, |
474 | .tiocmset = mxser_tiocmset, | 476 | .tiocmset = mxser_tiocmset, |
475 | }; | 477 | }; |
@@ -722,24 +724,6 @@ static int mxser_init(void) | |||
722 | mxvar_sdriver->termios = mxvar_termios; | 724 | mxvar_sdriver->termios = mxvar_termios; |
723 | mxvar_sdriver->termios_locked = mxvar_termios_locked; | 725 | mxvar_sdriver->termios_locked = mxvar_termios_locked; |
724 | 726 | ||
725 | mxvar_sdriver->open = mxser_open; | ||
726 | mxvar_sdriver->close = mxser_close; | ||
727 | mxvar_sdriver->write = mxser_write; | ||
728 | mxvar_sdriver->put_char = mxser_put_char; | ||
729 | mxvar_sdriver->flush_chars = mxser_flush_chars; | ||
730 | mxvar_sdriver->write_room = mxser_write_room; | ||
731 | mxvar_sdriver->chars_in_buffer = mxser_chars_in_buffer; | ||
732 | mxvar_sdriver->flush_buffer = mxser_flush_buffer; | ||
733 | mxvar_sdriver->ioctl = mxser_ioctl; | ||
734 | mxvar_sdriver->throttle = mxser_throttle; | ||
735 | mxvar_sdriver->unthrottle = mxser_unthrottle; | ||
736 | mxvar_sdriver->set_termios = mxser_set_termios; | ||
737 | mxvar_sdriver->stop = mxser_stop; | ||
738 | mxvar_sdriver->start = mxser_start; | ||
739 | mxvar_sdriver->hangup = mxser_hangup; | ||
740 | mxvar_sdriver->break_ctl = mxser_rs_break; | ||
741 | mxvar_sdriver->wait_until_sent = mxser_wait_until_sent; | ||
742 | |||
743 | mxvar_diagflag = 0; | 727 | mxvar_diagflag = 0; |
744 | memset(mxvar_table, 0, MXSER_PORTS * sizeof(struct mxser_struct)); | 728 | memset(mxvar_table, 0, MXSER_PORTS * sizeof(struct mxser_struct)); |
745 | memset(&mxvar_log, 0, sizeof(struct mxser_log)); | 729 | memset(&mxvar_log, 0, sizeof(struct mxser_log)); |