diff options
Diffstat (limited to 'drivers/usb/dwc3/gadget.c')
-rw-r--r-- | drivers/usb/dwc3/gadget.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index de5f0afa890a..cebaef720cd4 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c | |||
@@ -254,8 +254,7 @@ static int dwc3_gadget_set_ep_config(struct dwc3 *dwc, struct dwc3_ep *dep, | |||
254 | memset(¶ms, 0x00, sizeof(params)); | 254 | memset(¶ms, 0x00, sizeof(params)); |
255 | 255 | ||
256 | params.param0.depcfg.ep_type = usb_endpoint_type(desc); | 256 | params.param0.depcfg.ep_type = usb_endpoint_type(desc); |
257 | params.param0.depcfg.max_packet_size = | 257 | params.param0.depcfg.max_packet_size = usb_endpoint_maxp(desc); |
258 | le16_to_cpu(desc->wMaxPacketSize); | ||
259 | 258 | ||
260 | params.param1.depcfg.xfer_complete_enable = true; | 259 | params.param1.depcfg.xfer_complete_enable = true; |
261 | params.param1.depcfg.xfer_not_ready_enable = true; | 260 | params.param1.depcfg.xfer_not_ready_enable = true; |