TTY: pty, switch to tty_alloc_driver
authorJiri Slaby <jslaby@suse.cz>
Wed, 8 Aug 2012 20:26:41 +0000 (22:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Aug 2012 23:45:38 +0000 (16:45 -0700)
commit21aca2fa00259f781d228496631b61dbb4274e90
tree825e2b2ce47f55c27948112e89238c2a2a831f48
parent7f0bc6a68ed93f3b4ad77b94df5ef32446c583e3
TTY: pty, switch to tty_alloc_driver

Switch to the new driver allocation interface, as this is one of the
special call-sites. Here, we need TTY_DRIVER_DYNAMIC_ALLOC to not
allocate tty_driver->ports, cdevs and potentially other structures
because we reserve too many lines in pty. Instead, it provides the
tty_port<->tty_struct link in tty->ops->install already.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/pty.c
include/linux/tty_driver.h