]> git.karo-electronics.de Git - karo-tx-linux.git/commit
TTY: move allocations to tty_alloc_driver
authorJiri Slaby <jslaby@suse.cz>
Wed, 8 Aug 2012 20:26:42 +0000 (22:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Aug 2012 23:45:38 +0000 (16:45 -0700)
commit16a02081baa15becdb7d6460659e7832e6524d93
tree8bd34de93db9a2c225241b1dedf7394baaa6819e
parent21aca2fa00259f781d228496631b61dbb4274e90
TTY: move allocations to tty_alloc_driver

So now, that we have flags and know everything needed, keep a promise
and move all the tables and ports allocation from tty_register_driver
to tty_alloc_driver.

Not only that it makes sense, but we need this for
tty_port_link_device which needs tty_driver->ports but is to be called
before tty_register_driver.

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/tty_io.c