nozomi: Add tty_port usage
authorAlan Cox <alan@linux.intel.com>
Mon, 8 Feb 2010 10:06:45 +0000 (10:06 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 2 Mar 2010 22:43:20 +0000 (14:43 -0800)
commit266794eb71cfee65b38371954b9db2f6dbda207c
tree1366efced65d8234dc330aff13597f46ac4a18c7
parent8b197a5ce7a7218bb9fc721647ba0d5734f27348
nozomi: Add tty_port usage

The Nozomi tty handling is very broken on the open/close side (See
http://bugzilla.kernel.org/show_bug.cgi?id=13024 for one example). In
particular it marks the tty as closed on the first close() not on the last.

Most of the logic is pretty solid except for the open/close path so switch
to the tty_port helpers and let them do all the heavy lifting. This is also
fixes all the POSIX behaviour violations in the open/close paths.

Begin by adding the tty port usage

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/nozomi.c