opticon: Fix resume logic
authorAlan Cox <alan@linux.intel.com>
Tue, 6 Oct 2009 15:06:57 +0000 (16:06 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 23:18:04 +0000 (15:18 -0800)
commit2a0785ea375fe93cd480599bb40d0c837ff72a2e
tree270c1b837414753a3c08be2997426df45fa5fa63
parent82fc5943430e3cbf15033ed4186a73f90906345d
opticon: Fix resume logic

Opticon now takes the right mutex to check the port status but the status
check is done wrongly for the modern serial code, so fix it.

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/usb/serial/opticon.c