Commit c2ece75a authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman Committed by Linus Torvalds

USB: visor.c: changed USB_DT_DEVICE to USB_RECIP_INTERFACE, as that's the proper #define to use.

Thanks to David Brownell for pointing this out to me.
parent 2a4eb6d7
...@@ -669,7 +669,7 @@ static int clie_3_5_startup (struct usb_serial *serial) ...@@ -669,7 +669,7 @@ static int clie_3_5_startup (struct usb_serial *serial)
/* get the interface number */ /* get the interface number */
result = usb_control_msg (serial->dev, usb_rcvctrlpipe(serial->dev, 0), result = usb_control_msg (serial->dev, usb_rcvctrlpipe(serial->dev, 0),
USB_REQ_GET_INTERFACE, USB_REQ_GET_INTERFACE,
USB_DIR_IN | USB_DT_DEVICE, USB_DIR_IN | USB_RECIP_INTERFACE,
0, 0, &data, 1, HZ * 3); 0, 0, &data, 1, HZ * 3);
if (result < 0) { if (result < 0) {
err("%s: get interface number failed: %d", __FUNCTION__, result); err("%s: get interface number failed: %d", __FUNCTION__, result);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment