diff options
Diffstat (limited to 'drivers/usb/serial/opticon.c')
-rw-r--r-- | drivers/usb/serial/opticon.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/usb/serial/opticon.c b/drivers/usb/serial/opticon.c index cb8674ec5fbb..8c66471f3bff 100644 --- a/drivers/usb/serial/opticon.c +++ b/drivers/usb/serial/opticon.c | |||
@@ -184,13 +184,6 @@ static int opticon_open(struct tty_struct *tty, struct usb_serial_port *port) | |||
184 | /* Clear RTS line */ | 184 | /* Clear RTS line */ |
185 | send_control_msg(port, CONTROL_RTS, 0); | 185 | send_control_msg(port, CONTROL_RTS, 0); |
186 | 186 | ||
187 | /* Setup the read URB and start reading from the device */ | ||
188 | usb_fill_bulk_urb(priv->bulk_read_urb, priv->udev, | ||
189 | usb_rcvbulkpipe(priv->udev, | ||
190 | priv->bulk_address), | ||
191 | priv->bulk_in_buffer, priv->buffer_size, | ||
192 | opticon_read_bulk_callback, priv); | ||
193 | |||
194 | /* clear the halt status of the enpoint */ | 187 | /* clear the halt status of the enpoint */ |
195 | usb_clear_halt(priv->udev, priv->bulk_read_urb->pipe); | 188 | usb_clear_halt(priv->udev, priv->bulk_read_urb->pipe); |
196 | 189 | ||
@@ -530,6 +523,12 @@ static int opticon_startup(struct usb_serial *serial) | |||
530 | goto error; | 523 | goto error; |
531 | } | 524 | } |
532 | 525 | ||
526 | usb_fill_bulk_urb(priv->bulk_read_urb, serial->dev, | ||
527 | usb_rcvbulkpipe(serial->dev, | ||
528 | priv->bulk_address), | ||
529 | priv->bulk_in_buffer, priv->buffer_size, | ||
530 | opticon_read_bulk_callback, priv); | ||
531 | |||
533 | usb_set_serial_data(serial, priv); | 532 | usb_set_serial_data(serial, priv); |
534 | return 0; | 533 | return 0; |
535 | 534 | ||