diff options
Diffstat (limited to 'drivers/usb/serial/io_edgeport.c')
-rw-r--r-- | drivers/usb/serial/io_edgeport.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/drivers/usb/serial/io_edgeport.c b/drivers/usb/serial/io_edgeport.c index 3b246d93cf22..f1aedfa7c420 100644 --- a/drivers/usb/serial/io_edgeport.c +++ b/drivers/usb/serial/io_edgeport.c | |||
@@ -216,11 +216,11 @@ static void edge_unthrottle(struct tty_struct *tty); | |||
216 | static void edge_set_termios(struct tty_struct *tty, | 216 | static void edge_set_termios(struct tty_struct *tty, |
217 | struct usb_serial_port *port, | 217 | struct usb_serial_port *port, |
218 | struct ktermios *old_termios); | 218 | struct ktermios *old_termios); |
219 | static int edge_ioctl(struct tty_struct *tty, struct file *file, | 219 | static int edge_ioctl(struct tty_struct *tty, |
220 | unsigned int cmd, unsigned long arg); | 220 | unsigned int cmd, unsigned long arg); |
221 | static void edge_break(struct tty_struct *tty, int break_state); | 221 | static void edge_break(struct tty_struct *tty, int break_state); |
222 | static int edge_tiocmget(struct tty_struct *tty, struct file *file); | 222 | static int edge_tiocmget(struct tty_struct *tty); |
223 | static int edge_tiocmset(struct tty_struct *tty, struct file *file, | 223 | static int edge_tiocmset(struct tty_struct *tty, |
224 | unsigned int set, unsigned int clear); | 224 | unsigned int set, unsigned int clear); |
225 | static int edge_get_icount(struct tty_struct *tty, | 225 | static int edge_get_icount(struct tty_struct *tty, |
226 | struct serial_icounter_struct *icount); | 226 | struct serial_icounter_struct *icount); |
@@ -1568,7 +1568,7 @@ static int get_lsr_info(struct edgeport_port *edge_port, | |||
1568 | return 0; | 1568 | return 0; |
1569 | } | 1569 | } |
1570 | 1570 | ||
1571 | static int edge_tiocmset(struct tty_struct *tty, struct file *file, | 1571 | static int edge_tiocmset(struct tty_struct *tty, |
1572 | unsigned int set, unsigned int clear) | 1572 | unsigned int set, unsigned int clear) |
1573 | { | 1573 | { |
1574 | struct usb_serial_port *port = tty->driver_data; | 1574 | struct usb_serial_port *port = tty->driver_data; |
@@ -1599,7 +1599,7 @@ static int edge_tiocmset(struct tty_struct *tty, struct file *file, | |||
1599 | return 0; | 1599 | return 0; |
1600 | } | 1600 | } |
1601 | 1601 | ||
1602 | static int edge_tiocmget(struct tty_struct *tty, struct file *file) | 1602 | static int edge_tiocmget(struct tty_struct *tty) |
1603 | { | 1603 | { |
1604 | struct usb_serial_port *port = tty->driver_data; | 1604 | struct usb_serial_port *port = tty->driver_data; |
1605 | struct edgeport_port *edge_port = usb_get_serial_port_data(port); | 1605 | struct edgeport_port *edge_port = usb_get_serial_port_data(port); |
@@ -1679,7 +1679,7 @@ static int get_serial_info(struct edgeport_port *edge_port, | |||
1679 | * SerialIoctl | 1679 | * SerialIoctl |
1680 | * this function handles any ioctl calls to the driver | 1680 | * this function handles any ioctl calls to the driver |
1681 | *****************************************************************************/ | 1681 | *****************************************************************************/ |
1682 | static int edge_ioctl(struct tty_struct *tty, struct file *file, | 1682 | static int edge_ioctl(struct tty_struct *tty, |
1683 | unsigned int cmd, unsigned long arg) | 1683 | unsigned int cmd, unsigned long arg) |
1684 | { | 1684 | { |
1685 | struct usb_serial_port *port = tty->driver_data; | 1685 | struct usb_serial_port *port = tty->driver_data; |
@@ -2343,7 +2343,6 @@ static int write_cmd_usb(struct edgeport_port *edge_port, | |||
2343 | usb_get_serial_data(edge_port->port->serial); | 2343 | usb_get_serial_data(edge_port->port->serial); |
2344 | int status = 0; | 2344 | int status = 0; |
2345 | struct urb *urb; | 2345 | struct urb *urb; |
2346 | int timeout; | ||
2347 | 2346 | ||
2348 | usb_serial_debug_data(debug, &edge_port->port->dev, | 2347 | usb_serial_debug_data(debug, &edge_port->port->dev, |
2349 | __func__, length, buffer); | 2348 | __func__, length, buffer); |
@@ -2376,8 +2375,6 @@ static int write_cmd_usb(struct edgeport_port *edge_port, | |||
2376 | return status; | 2375 | return status; |
2377 | } | 2376 | } |
2378 | 2377 | ||
2379 | /* wait for command to finish */ | ||
2380 | timeout = COMMAND_TIMEOUT; | ||
2381 | #if 0 | 2378 | #if 0 |
2382 | wait_event(&edge_port->wait_command, !edge_port->commandPending); | 2379 | wait_event(&edge_port->wait_command, !edge_port->commandPending); |
2383 | 2380 | ||