]> git.baikalelectronics.ru Git - kernel.git/commit
Move tty lookup/reopen to caller
authorSukadev Bhattiprolu <sukadev@us.ibm.com>
Mon, 13 Oct 2008 09:42:49 +0000 (10:42 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 13 Oct 2008 16:51:43 +0000 (09:51 -0700)
commit7a84b46e97b7cf13c97c9db325e6eab1b5dbe645
treeecb39392a17d1e9f0668c21064e3aa4207700e76
parent6727394a6dd60d5ed67f98b81a3218d7bcb16b5a
Move tty lookup/reopen to caller

Move tty_driver_lookup_tty() and tty_reopen() from tty_init_dev()
into tty_open() (one of the two callers of tty_init_dev()).  These
calls are not really required in ptmx_open(), the other caller,
since ptmx_open() would be setting up a new tty.

Changelog[v2]:
- remove the lookup and reopen calls from ptmx_open
- merge with recent changes to ttydev tree

Signed-off-by: Sukadev Bhattiprolu <sukadev@us.ibm.com>
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/tty_io.c