diff options
author | Alan Cox <alan@linux.intel.com> | 2009-10-06 11:06:46 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-12-11 18:18:04 -0500 |
commit | 82fc5943430e3cbf15033ed4186a73f90906345d (patch) | |
tree | 16e8168424072f02cba69c64bedf5d52915c9eda /include/linux/usb/serial.h | |
parent | e1108a63e10d344284011cccc06328b2cd3e5da3 (diff) |
usb_serial: Kill port mutex
The tty port has a port mutex used for all the port related locking so we
don't need the one in the USB serial layer any more.
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>
Diffstat (limited to 'include/linux/usb/serial.h')
-rw-r--r-- | include/linux/usb/serial.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/usb/serial.h b/include/linux/usb/serial.h index ce911ebf91e8..acf6e457c04b 100644 --- a/include/linux/usb/serial.h +++ b/include/linux/usb/serial.h | |||
@@ -39,8 +39,6 @@ enum port_dev_state { | |||
39 | * @serial: pointer back to the struct usb_serial owner of this port. | 39 | * @serial: pointer back to the struct usb_serial owner of this port. |
40 | * @port: pointer to the corresponding tty_port for this port. | 40 | * @port: pointer to the corresponding tty_port for this port. |
41 | * @lock: spinlock to grab when updating portions of this structure. | 41 | * @lock: spinlock to grab when updating portions of this structure. |
42 | * @mutex: mutex used to synchronize serial_open() and serial_close() | ||
43 | * access for this port. | ||
44 | * @number: the number of the port (the minor number). | 42 | * @number: the number of the port (the minor number). |
45 | * @interrupt_in_buffer: pointer to the interrupt in buffer for this port. | 43 | * @interrupt_in_buffer: pointer to the interrupt in buffer for this port. |
46 | * @interrupt_in_urb: pointer to the interrupt in struct urb for this port. | 44 | * @interrupt_in_urb: pointer to the interrupt in struct urb for this port. |
@@ -77,7 +75,6 @@ struct usb_serial_port { | |||
77 | struct usb_serial *serial; | 75 | struct usb_serial *serial; |
78 | struct tty_port port; | 76 | struct tty_port port; |
79 | spinlock_t lock; | 77 | spinlock_t lock; |
80 | struct mutex mutex; | ||
81 | unsigned char number; | 78 | unsigned char number; |
82 | 79 | ||
83 | unsigned char *interrupt_in_buffer; | 80 | unsigned char *interrupt_in_buffer; |