diff options
Diffstat (limited to 'drivers/usb/misc/iowarrior.c')
-rw-r--r-- | drivers/usb/misc/iowarrior.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/misc/iowarrior.c b/drivers/usb/misc/iowarrior.c index a2190b983f52..81457904d6ba 100644 --- a/drivers/usb/misc/iowarrior.c +++ b/drivers/usb/misc/iowarrior.c | |||
@@ -803,7 +803,7 @@ static int iowarrior_probe(struct usb_interface *interface, | |||
803 | dev->int_out_endpoint = endpoint; | 803 | dev->int_out_endpoint = endpoint; |
804 | } | 804 | } |
805 | /* we have to check the report_size often, so remember it in the endianess suitable for our machine */ | 805 | /* we have to check the report_size often, so remember it in the endianess suitable for our machine */ |
806 | dev->report_size = le16_to_cpu(dev->int_in_endpoint->wMaxPacketSize); | 806 | dev->report_size = usb_endpoint_maxp(dev->int_in_endpoint); |
807 | if ((dev->interface->cur_altsetting->desc.bInterfaceNumber == 0) && | 807 | if ((dev->interface->cur_altsetting->desc.bInterfaceNumber == 0) && |
808 | (dev->product_id == USB_DEVICE_ID_CODEMERCS_IOW56)) | 808 | (dev->product_id == USB_DEVICE_ID_CODEMERCS_IOW56)) |
809 | /* IOWarrior56 has wMaxPacketSize different from report size */ | 809 | /* IOWarrior56 has wMaxPacketSize different from report size */ |