aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/console.c
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2009-09-01 11:39:59 -0400
committerLive-CD User <linux@linux.site>2009-09-19 13:13:42 -0700
commit320348c8d5c9b591282633ddb8959b42f7fc7a1c (patch)
treedc49860c46437290db4b994c581bce42a2b8cc09 /drivers/usb/serial/console.c
parentusb-serial: add missing tests and debug lines (diff)
downloadlinux-dev-320348c8d5c9b591282633ddb8959b42f7fc7a1c.tar.xz
linux-dev-320348c8d5c9b591282633ddb8959b42f7fc7a1c.zip
usb-serial: straighten out serial_open
This patch (as1291) removes a bunch of code from serial_open(), things that were rendered unnecessary by earlier patches. A missing spinlock is added to protect port->port.count, which needs to be incremented even if the open fails but not if the tty has gotten a hangup. The test for whether the hardware has been initialized, based on the use count, is replaced by a more transparent test of the ASYNCB_INITIALIZED bit in the port flags. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Cc: stable <stable@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions