tty_port: add "tty_port_open" helper
authorAlan Cox <alan@linux.intel.com>
Tue, 6 Oct 2009 15:06:11 +0000 (16:06 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 23:18:04 +0000 (15:18 -0800)
commit64bc397914265a9ead8d73b63bb31ab3bdd25f67
treedc96d1737d3d70bbdebaea7e0f0aedd1377e1000
parent894cb91770f7794f1a17db4df2d83999b197da24
tty_port: add "tty_port_open" helper

For the moment this just moves the USB logic over and fixes the 'what if
we open and hangup at the same time' race noticed by Oliver Neukum.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: Oliver Neukum <oliver@neukum.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/tty_port.c
drivers/usb/serial/usb-serial.c
include/linux/tty.h