From: Alan Stern Date: Tue, 1 Sep 2009 15:39:59 +0000 (-0400) Subject: usb-serial: straighten out serial_open X-Git-Tag: v2.6.32-rc1~627^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=320348c8d5c9b591282633ddb8959b42f7fc7a1c;p=pandora-kernel.git 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 Cc: stable Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed