#include <linux/config.h>
#include <linux/kref.h>
-#include <linux/mutex.h>
+#include <asm/semaphore.h>
#define SERIAL_TTY_MAJOR 188 /* Nice legal number now */
#define SERIAL_TTY_MINORS 255 /* loads of devices :) */
* @serial: pointer back to the struct usb_serial owner of this port.
* @tty: pointer to the corresponding tty for this port.
* @lock: spinlock to grab when updating portions of this structure.
- * @mutex: mutex used to synchronize serial_open() and serial_close()
+ * @sem: semaphore used to synchronize serial_open() and serial_close()
* access for this port.
* @number: the number of the port (the minor number).
* @interrupt_in_buffer: pointer to the interrupt in buffer for this port.
struct usb_serial * serial;
struct tty_struct * tty;
spinlock_t lock;
- struct mutex mutex;
+ struct semaphore sem;
unsigned char number;
unsigned char * interrupt_in_buffer;