[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>
This commit is contained in:
Kirill Smelkov 2005-11-07 00:59:20 -08:00 коммит произвёл Linus Torvalds
Родитель b9b0332fcf
Коммит 57432345b6
1 изменённых файлов: 2 добавлений и 18 удалений

Просмотреть файл

@ -470,6 +470,8 @@ static struct tty_operations mxser_ops = {
.stop = mxser_stop,
.start = mxser_start,
.hangup = mxser_hangup,
.break_ctl = mxser_rs_break,
.wait_until_sent = mxser_wait_until_sent,
.tiocmget = mxser_tiocmget,
.tiocmset = mxser_tiocmset,
};
@ -722,24 +724,6 @@ static int mxser_init(void)
mxvar_sdriver->termios = mxvar_termios;
mxvar_sdriver->termios_locked = mxvar_termios_locked;
mxvar_sdriver->open = mxser_open;
mxvar_sdriver->close = mxser_close;
mxvar_sdriver->write = mxser_write;
mxvar_sdriver->put_char = mxser_put_char;
mxvar_sdriver->flush_chars = mxser_flush_chars;
mxvar_sdriver->write_room = mxser_write_room;
mxvar_sdriver->chars_in_buffer = mxser_chars_in_buffer;
mxvar_sdriver->flush_buffer = mxser_flush_buffer;
mxvar_sdriver->ioctl = mxser_ioctl;
mxvar_sdriver->throttle = mxser_throttle;
mxvar_sdriver->unthrottle = mxser_unthrottle;
mxvar_sdriver->set_termios = mxser_set_termios;
mxvar_sdriver->stop = mxser_stop;
mxvar_sdriver->start = mxser_start;
mxvar_sdriver->hangup = mxser_hangup;
mxvar_sdriver->break_ctl = mxser_rs_break;
mxvar_sdriver->wait_until_sent = mxser_wait_until_sent;
mxvar_diagflag = 0;
memset(mxvar_table, 0, MXSER_PORTS * sizeof(struct mxser_struct));
memset(&mxvar_log, 0, sizeof(struct mxser_log));