aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/misc/usblcd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/misc/usblcd.c')
-rw-r--r--drivers/usb/misc/usblcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/misc/usblcd.c b/drivers/usb/misc/usblcd.c
index 6ac106952e95..1871cdf10da3 100644
--- a/drivers/usb/misc/usblcd.c
+++ b/drivers/usb/misc/usblcd.c
@@ -347,7 +347,7 @@ static int lcd_probe(struct usb_interface *interface,
347 if (!dev->bulk_in_endpointAddr && 347 if (!dev->bulk_in_endpointAddr &&
348 usb_endpoint_is_bulk_in(endpoint)) { 348 usb_endpoint_is_bulk_in(endpoint)) {
349 /* we found a bulk in endpoint */ 349 /* we found a bulk in endpoint */
350 buffer_size = le16_to_cpu(endpoint->wMaxPacketSize); 350 buffer_size = usb_endpoint_maxp(endpoint);
351 dev->bulk_in_size = buffer_size; 351 dev->bulk_in_size = buffer_size;
352 dev->bulk_in_endpointAddr = endpoint->bEndpointAddress; 352 dev->bulk_in_endpointAddr = endpoint->bEndpointAddress;
353 dev->bulk_in_buffer = kmalloc(buffer_size, GFP_KERNEL); 353 dev->bulk_in_buffer = kmalloc(buffer_size, GFP_KERNEL);