diff options
Diffstat (limited to 'drivers/usb/gadget/fsl_qe_udc.c')
-rw-r--r-- | drivers/usb/gadget/fsl_qe_udc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/fsl_qe_udc.c b/drivers/usb/gadget/fsl_qe_udc.c index 3bf872e1ad39..2a03e4de11c1 100644 --- a/drivers/usb/gadget/fsl_qe_udc.c +++ b/drivers/usb/gadget/fsl_qe_udc.c | |||
@@ -540,7 +540,7 @@ static int qe_ep_init(struct qe_udc *udc, | |||
540 | int reval = 0; | 540 | int reval = 0; |
541 | u16 max = 0; | 541 | u16 max = 0; |
542 | 542 | ||
543 | max = le16_to_cpu(desc->wMaxPacketSize); | 543 | max = usb_endpoint_maxp(desc); |
544 | 544 | ||
545 | /* check the max package size validate for this endpoint */ | 545 | /* check the max package size validate for this endpoint */ |
546 | /* Refer to USB2.0 spec table 9-13, | 546 | /* Refer to USB2.0 spec table 9-13, |