diff options
Diffstat (limited to 'drivers/usb/serial/io_edgeport.c')
-rw-r--r-- | drivers/usb/serial/io_edgeport.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/serial/io_edgeport.c b/drivers/usb/serial/io_edgeport.c index abf095be575..2ee807523f5 100644 --- a/drivers/usb/serial/io_edgeport.c +++ b/drivers/usb/serial/io_edgeport.c | |||
@@ -3042,7 +3042,7 @@ static int edge_startup(struct usb_serial *serial) | |||
3042 | 3042 | ||
3043 | endpoint = &serial->interface->altsetting[0]. | 3043 | endpoint = &serial->interface->altsetting[0]. |
3044 | endpoint[i].desc; | 3044 | endpoint[i].desc; |
3045 | buffer_size = le16_to_cpu(endpoint->wMaxPacketSize); | 3045 | buffer_size = usb_endpoint_maxp(endpoint); |
3046 | if (!interrupt_in_found && | 3046 | if (!interrupt_in_found && |
3047 | (usb_endpoint_is_int_in(endpoint))) { | 3047 | (usb_endpoint_is_int_in(endpoint))) { |
3048 | /* we found a interrupt in endpoint */ | 3048 | /* we found a interrupt in endpoint */ |
@@ -3107,7 +3107,7 @@ static int edge_startup(struct usb_serial *serial) | |||
3107 | usb_rcvbulkpipe(dev, | 3107 | usb_rcvbulkpipe(dev, |
3108 | endpoint->bEndpointAddress), | 3108 | endpoint->bEndpointAddress), |
3109 | edge_serial->bulk_in_buffer, | 3109 | edge_serial->bulk_in_buffer, |
3110 | le16_to_cpu(endpoint->wMaxPacketSize), | 3110 | usb_endpoint_maxp(endpoint), |
3111 | edge_bulk_in_callback, | 3111 | edge_bulk_in_callback, |
3112 | edge_serial); | 3112 | edge_serial); |
3113 | bulk_in_found = true; | 3113 | bulk_in_found = true; |