diff options
Diffstat (limited to 'drivers/usb/gadget/composite.c')
-rw-r--r-- | drivers/usb/gadget/composite.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c index aef47414f5d5..8065464523b1 100644 --- a/drivers/usb/gadget/composite.c +++ b/drivers/usb/gadget/composite.c | |||
@@ -164,7 +164,7 @@ int config_ep_by_speed(struct usb_gadget *g, | |||
164 | 164 | ||
165 | ep_found: | 165 | ep_found: |
166 | /* commit results */ | 166 | /* commit results */ |
167 | _ep->maxpacket = le16_to_cpu(chosen_desc->wMaxPacketSize); | 167 | _ep->maxpacket = usb_endpoint_maxp(chosen_desc); |
168 | _ep->desc = chosen_desc; | 168 | _ep->desc = chosen_desc; |
169 | _ep->comp_desc = NULL; | 169 | _ep->comp_desc = NULL; |
170 | _ep->maxburst = 0; | 170 | _ep->maxburst = 0; |