]> git.baikalelectronics.ru Git - kernel.git/commit
um: switch line.c tty drivers to dynamic device creation
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 9 Sep 2011 23:45:42 +0000 (19:45 -0400)
committerRichard Weinberger <richard@nod.at>
Sat, 24 Mar 2012 23:29:53 +0000 (00:29 +0100)
commit12bb7ea8936cc39ed3cf03bae7ff379bc054c12f
tree5030f25d83451e3b3e579bac4b9a2e561990048d
parenteea2837abca49b5d1ca90f6d6c311fb9f9f0ca4d
um: switch line.c tty drivers to dynamic device creation

Current code doesn't update the symlinks in /sys/dev/char when we add/remove
tty lines.  Fixing that allows to stop messing with ->valid before the driver
registration, which is a Good Thing(tm) - we shouldn't have it set before we
really have the things set up and ready for line_open().

We need tty_driver available to call tty_{un,}register_device(), so we just
stash a reference to it into struct line_driver.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/drivers/line.c
arch/um/drivers/line.h
arch/um/drivers/ssl.c
arch/um/drivers/stdio_console.c