summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Hovold <jhovold@gmail.com>2013-05-27 14:44:38 +0200
committerBen Hutchings <ben@decadent.org.uk>2013-06-19 02:16:50 +0100
commitafc11b7e5278ac5ec3728f3eef43517e987eb51a (patch)
tree0cd2e93e9f6cc8db4637f6412858169ff39e87c4
parent796b5b05e3d6b8925ef0e8bc5f63ee8fd38e5e7a (diff)
USB: visor: fix initialisation of Treo/Kyocera devices
commit 420021a395ce38b7ab2cceb52dee4038be7d8fa3 upstream. Fix regression introduced by commit 214916f2e ("USB: visor: reimplement using generic framework") which broke initialisation of Treo/Kyocera devices that re-mapped bulk-in endpoints. Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> [bwh: Backported to 3.2: only copy bulk_in_size as the other new fields don't exist here] Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
-rw-r--r--drivers/usb/serial/visor.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/serial/visor.c b/drivers/usb/serial/visor.c
index 189a894b6c8e..80a6ff69eb83 100644
--- a/drivers/usb/serial/visor.c
+++ b/drivers/usb/serial/visor.c
@@ -599,6 +599,7 @@ static int treo_attach(struct usb_serial *serial)
dest->read_urb = src->read_urb; \
dest->bulk_in_endpointAddress = src->bulk_in_endpointAddress;\
dest->bulk_in_buffer = src->bulk_in_buffer; \
+ dest->bulk_in_size = src->bulk_in_size; \
dest->interrupt_in_urb = src->interrupt_in_urb; \
dest->interrupt_in_urb->context = dest; \
dest->interrupt_in_endpointAddress = \