]> git.karo-electronics.de Git - mv-sheeva.git/commit
TTY: remove tty driver re-set from tty_reopen
authorJiri Slaby <jslaby@suse.cz>
Mon, 5 Mar 2012 13:51:54 +0000 (14:51 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Mar 2012 19:38:50 +0000 (11:38 -0800)
commitecd166507f4218c9988d005feb04b7215f9df321
tree8d2283a6cf8b75f7955373107ae0f0267d9438e5
parentd4834267e81c8f08685e6ee55751551fa60f66e3
TTY: remove tty driver re-set from tty_reopen

This is from tty_reopen:
    struct tty_driver *driver = tty->driver;
    ...
    tty->driver = driver;
and it doesn't make sense at all. The driver is intended to be set in
initialize_tty_struct from tty_init_dev (initial open). So this set in
tty_reopen is not needed.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_io.c