TTY: add support for unnumbered device nodes
authorJiri Slaby <jslaby@suse.cz>
Wed, 8 Aug 2012 20:26:43 +0000 (22:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Aug 2012 23:45:38 +0000 (16:45 -0700)
commit0019b4089ccef8148d8be83cc8adfc81a75b47d4
tree4db275fb4c29f9e7f2da85f136dc9f733b26d3eb
parent16a02081baa15becdb7d6460659e7832e6524d93
TTY: add support for unnumbered device nodes

This allows drivers like ttyprintk to avoid hacks to create an
unnumbered node in /dev. It used to set TTY_DRIVER_DYNAMIC_DEV in
flags and call device_create on its own. That is incorrect, because
TTY_DRIVER_DYNAMIC_DEV may be set only if tty_register_device is
called explicitly.

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/char/ttyprintk.c
drivers/tty/tty_io.c
include/linux/tty_driver.h