diff options
Diffstat (limited to 'drivers/usb/gadget/udc/atmel_usba_udc.c')
-rw-r--r-- | drivers/usb/gadget/udc/atmel_usba_udc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/gadget/udc/atmel_usba_udc.c b/drivers/usb/gadget/udc/atmel_usba_udc.c index c9fe67e29d35..1529926e20a0 100644 --- a/drivers/usb/gadget/udc/atmel_usba_udc.c +++ b/drivers/usb/gadget/udc/atmel_usba_udc.c | |||
@@ -463,7 +463,7 @@ static void receive_data(struct usba_ep *ep) | |||
463 | list_del_init(&req->queue); | 463 | list_del_init(&req->queue); |
464 | usba_ep_writel(ep, CTL_DIS, USBA_RX_BK_RDY); | 464 | usba_ep_writel(ep, CTL_DIS, USBA_RX_BK_RDY); |
465 | spin_unlock(&udc->lock); | 465 | spin_unlock(&udc->lock); |
466 | req->req.complete(&ep->ep, &req->req); | 466 | usb_gadget_giveback_request(&ep->ep, &req->req); |
467 | spin_lock(&udc->lock); | 467 | spin_lock(&udc->lock); |
468 | } | 468 | } |
469 | 469 | ||
@@ -495,7 +495,7 @@ request_complete(struct usba_ep *ep, struct usba_request *req, int status) | |||
495 | ep->ep.name, req, req->req.status, req->req.actual); | 495 | ep->ep.name, req, req->req.status, req->req.actual); |
496 | 496 | ||
497 | spin_unlock(&udc->lock); | 497 | spin_unlock(&udc->lock); |
498 | req->req.complete(&ep->ep, &req->req); | 498 | usb_gadget_giveback_request(&ep->ep, &req->req); |
499 | spin_lock(&udc->lock); | 499 | spin_lock(&udc->lock); |
500 | } | 500 | } |
501 | 501 | ||