diff options
Diffstat (limited to 'drivers/usb/gadget/imx_udc.c')
-rw-r--r-- | drivers/usb/gadget/imx_udc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/gadget/imx_udc.c b/drivers/usb/gadget/imx_udc.c index 692fd9b2248b..2d978c0e7ced 100644 --- a/drivers/usb/gadget/imx_udc.c +++ b/drivers/usb/gadget/imx_udc.c | |||
@@ -689,7 +689,7 @@ static int imx_ep_enable(struct usb_ep *usb_ep, | |||
689 | return -EINVAL; | 689 | return -EINVAL; |
690 | } | 690 | } |
691 | 691 | ||
692 | if (imx_ep->fifosize < le16_to_cpu(desc->wMaxPacketSize)) { | 692 | if (imx_ep->fifosize < usb_endpoint_maxp(desc)) { |
693 | D_ERR(imx_usb->dev, | 693 | D_ERR(imx_usb->dev, |
694 | "<%s> bad %s maxpacket\n", __func__, usb_ep->name); | 694 | "<%s> bad %s maxpacket\n", __func__, usb_ep->name); |
695 | return -ERANGE; | 695 | return -ERANGE; |
@@ -1478,7 +1478,7 @@ static int __init imx_udc_probe(struct platform_device *pdev) | |||
1478 | 1478 | ||
1479 | for (i = 0; i < IMX_USB_NB_EP + 1; i++) { | 1479 | for (i = 0; i < IMX_USB_NB_EP + 1; i++) { |
1480 | ret = request_irq(imx_usb->usbd_int[i], intr_handler(i), | 1480 | ret = request_irq(imx_usb->usbd_int[i], intr_handler(i), |
1481 | IRQF_DISABLED, driver_name, imx_usb); | 1481 | 0, driver_name, imx_usb); |
1482 | if (ret) { | 1482 | if (ret) { |
1483 | dev_err(&pdev->dev, "can't get irq %i, err %d\n", | 1483 | dev_err(&pdev->dev, "can't get irq %i, err %d\n", |
1484 | imx_usb->usbd_int[i], ret); | 1484 | imx_usb->usbd_int[i], ret); |