]> git.baikalelectronics.ru Git - kernel.git/commit
TTY: pdc_cons, use tty_port
authorJiri Slaby <jslaby@suse.cz>
Mon, 5 Mar 2012 13:52:53 +0000 (14:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Mar 2012 20:51:13 +0000 (12:51 -0800)
commit89034be4b501a0f24c219d47083211660e1d94c3
tree8e2075f2da22a80ab39219e15c59769d5d8b5202
parentba842ddd00dc7f1d3c9c07bc88831e5309ebb331
TTY: pdc_cons, use tty_port

Instead of digging a tty out of the tty_driver struct, which is not
defined to work, use tty_port properly. This includes proper tty
refcounting even though there is no possible race currently. But we
will need tty_port for tty buffers in the future anyway.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Kyle McMartin <kyle@mcmartin.ca>
Cc: Helge Deller <deller@gmx.de>
Cc: "James E.J. Bottomley" <jejb@parisc-linux.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/parisc/kernel/pdc_cons.c