diff options
author | Johan Hovold <jhovold@gmail.com> | 2014-05-26 13:22:58 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-27 18:04:03 -0400 |
commit | d304889888af2ef65c94dfb52441cfecb05853e8 (patch) | |
tree | 10332de233d0e73adf42b4d4a2ddda98d75c168f /drivers/usb/serial | |
parent | f4a2d499e7f0ea9089c8e537ddad12260f7aab69 (diff) |
USB: sierra: fix line-control pipe direction
The sierra line-control request has been using the wrong pipe direction,
while relying on USB core to fix it up.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial')
-rw-r--r-- | drivers/usb/serial/sierra.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/sierra.c b/drivers/usb/serial/sierra.c index 0254f6d6bc5d..4cb11b710b48 100644 --- a/drivers/usb/serial/sierra.c +++ b/drivers/usb/serial/sierra.c | |||
@@ -365,7 +365,7 @@ static int sierra_send_setup(struct usb_serial_port *port) | |||
365 | if (retval < 0) | 365 | if (retval < 0) |
366 | return retval; | 366 | return retval; |
367 | 367 | ||
368 | retval = usb_control_msg(serial->dev, usb_rcvctrlpipe(serial->dev, 0), | 368 | retval = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), |
369 | 0x22, 0x21, val, interface, NULL, 0, USB_CTRL_SET_TIMEOUT); | 369 | 0x22, 0x21, val, interface, NULL, 0, USB_CTRL_SET_TIMEOUT); |
370 | usb_autopm_put_interface(serial->interface); | 370 | usb_autopm_put_interface(serial->interface); |
371 | 371 | ||