aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/atmel_usba_udc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/gadget/atmel_usba_udc.c')
-rw-r--r--drivers/usb/gadget/atmel_usba_udc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/atmel_usba_udc.c b/drivers/usb/gadget/atmel_usba_udc.c
index 52771d4c44bc..53eea030fc15 100644
--- a/drivers/usb/gadget/atmel_usba_udc.c
+++ b/drivers/usb/gadget/atmel_usba_udc.c
@@ -1670,7 +1670,7 @@ static irqreturn_t usba_udc_irq(int irq, void *devid)
1670 if (ep_status) { 1670 if (ep_status) {
1671 int i; 1671 int i;
1672 1672
1673 for (i = 0; i < USBA_NR_ENDPOINTS; i++) 1673 for (i = 0; i < udc->num_ep; i++)
1674 if (ep_status & (1 << i)) { 1674 if (ep_status & (1 << i)) {
1675 if (ep_is_control(&udc->usba_ep[i])) 1675 if (ep_is_control(&udc->usba_ep[i]))
1676 usba_control_irq(udc, &udc->usba_ep[i]); 1676 usba_control_irq(udc, &udc->usba_ep[i]);