diff options
Diffstat (limited to 'drivers/usb/gadget/imx_udc.c')
-rw-r--r-- | drivers/usb/gadget/imx_udc.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/usb/gadget/imx_udc.c b/drivers/usb/gadget/imx_udc.c index ed0266462c57..1210534822d6 100644 --- a/drivers/usb/gadget/imx_udc.c +++ b/drivers/usb/gadget/imx_udc.c | |||
@@ -1191,13 +1191,17 @@ static irqreturn_t imx_udc_ctrl_irq(int irq, void *dev) | |||
1191 | return IRQ_HANDLED; | 1191 | return IRQ_HANDLED; |
1192 | } | 1192 | } |
1193 | 1193 | ||
1194 | #ifndef MX1_INT_USBD0 | ||
1195 | #define MX1_INT_USBD0 MX1_USBD_INT0 | ||
1196 | #endif | ||
1197 | |||
1194 | static irqreturn_t imx_udc_bulk_irq(int irq, void *dev) | 1198 | static irqreturn_t imx_udc_bulk_irq(int irq, void *dev) |
1195 | { | 1199 | { |
1196 | struct imx_udc_struct *imx_usb = dev; | 1200 | struct imx_udc_struct *imx_usb = dev; |
1197 | struct imx_ep_struct *imx_ep = &imx_usb->imx_ep[irq - USBD_INT0]; | 1201 | struct imx_ep_struct *imx_ep = &imx_usb->imx_ep[irq - MX1_INT_USBD0]; |
1198 | int intr = __raw_readl(imx_usb->base + USB_EP_INTR(EP_NO(imx_ep))); | 1202 | int intr = __raw_readl(imx_usb->base + USB_EP_INTR(EP_NO(imx_ep))); |
1199 | 1203 | ||
1200 | dump_ep_intr(__func__, irq - USBD_INT0, intr, imx_usb->dev); | 1204 | dump_ep_intr(__func__, irq - MX1_INT_USBD0, intr, imx_usb->dev); |
1201 | 1205 | ||
1202 | if (!imx_usb->driver) { | 1206 | if (!imx_usb->driver) { |
1203 | __raw_writel(intr, imx_usb->base + USB_EP_INTR(EP_NO(imx_ep))); | 1207 | __raw_writel(intr, imx_usb->base + USB_EP_INTR(EP_NO(imx_ep))); |