diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2011-11-29 04:51:07 -0500 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2011-11-29 04:51:07 -0500 |
commit | 0d2cd91bf7b1a7cc1d638296111fcc2bcf5c0bb4 (patch) | |
tree | d2ca69347816c27f9dc352581f5d0fe76811cd49 /drivers/usb/serial/usb-serial.c | |
parent | 3d95fd6ad8d3cf582a70ed65660017114b6e4065 (diff) | |
parent | caca6a03d365883564885f2c1da3e88dcf65d139 (diff) |
Merge commit 'v3.2-rc3' into next
Diffstat (limited to 'drivers/usb/serial/usb-serial.c')
-rw-r--r-- | drivers/usb/serial/usb-serial.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c index 1c031309ab25..cc274fdf2627 100644 --- a/drivers/usb/serial/usb-serial.c +++ b/drivers/usb/serial/usb-serial.c | |||
@@ -912,7 +912,7 @@ int usb_serial_probe(struct usb_interface *interface, | |||
912 | goto probe_error; | 912 | goto probe_error; |
913 | } | 913 | } |
914 | buffer_size = max_t(int, serial->type->bulk_in_size, | 914 | buffer_size = max_t(int, serial->type->bulk_in_size, |
915 | le16_to_cpu(endpoint->wMaxPacketSize)); | 915 | usb_endpoint_maxp(endpoint)); |
916 | port->bulk_in_size = buffer_size; | 916 | port->bulk_in_size = buffer_size; |
917 | port->bulk_in_endpointAddress = endpoint->bEndpointAddress; | 917 | port->bulk_in_endpointAddress = endpoint->bEndpointAddress; |
918 | port->bulk_in_buffer = kmalloc(buffer_size, GFP_KERNEL); | 918 | port->bulk_in_buffer = kmalloc(buffer_size, GFP_KERNEL); |
@@ -942,7 +942,7 @@ int usb_serial_probe(struct usb_interface *interface, | |||
942 | goto probe_error; | 942 | goto probe_error; |
943 | buffer_size = serial->type->bulk_out_size; | 943 | buffer_size = serial->type->bulk_out_size; |
944 | if (!buffer_size) | 944 | if (!buffer_size) |
945 | buffer_size = le16_to_cpu(endpoint->wMaxPacketSize); | 945 | buffer_size = usb_endpoint_maxp(endpoint); |
946 | port->bulk_out_size = buffer_size; | 946 | port->bulk_out_size = buffer_size; |
947 | port->bulk_out_endpointAddress = endpoint->bEndpointAddress; | 947 | port->bulk_out_endpointAddress = endpoint->bEndpointAddress; |
948 | port->bulk_out_buffer = kmalloc(buffer_size, GFP_KERNEL); | 948 | port->bulk_out_buffer = kmalloc(buffer_size, GFP_KERNEL); |
@@ -990,7 +990,7 @@ int usb_serial_probe(struct usb_interface *interface, | |||
990 | "No free urbs available\n"); | 990 | "No free urbs available\n"); |
991 | goto probe_error; | 991 | goto probe_error; |
992 | } | 992 | } |
993 | buffer_size = le16_to_cpu(endpoint->wMaxPacketSize); | 993 | buffer_size = usb_endpoint_maxp(endpoint); |
994 | port->interrupt_in_endpointAddress = | 994 | port->interrupt_in_endpointAddress = |
995 | endpoint->bEndpointAddress; | 995 | endpoint->bEndpointAddress; |
996 | port->interrupt_in_buffer = kmalloc(buffer_size, | 996 | port->interrupt_in_buffer = kmalloc(buffer_size, |
@@ -1021,7 +1021,7 @@ int usb_serial_probe(struct usb_interface *interface, | |||
1021 | "No free urbs available\n"); | 1021 | "No free urbs available\n"); |
1022 | goto probe_error; | 1022 | goto probe_error; |
1023 | } | 1023 | } |
1024 | buffer_size = le16_to_cpu(endpoint->wMaxPacketSize); | 1024 | buffer_size = usb_endpoint_maxp(endpoint); |
1025 | port->interrupt_out_size = buffer_size; | 1025 | port->interrupt_out_size = buffer_size; |
1026 | port->interrupt_out_endpointAddress = | 1026 | port->interrupt_out_endpointAddress = |
1027 | endpoint->bEndpointAddress; | 1027 | endpoint->bEndpointAddress; |