diff options
author | Michal Sojka <sojka@merica.cz> | 2014-09-24 16:43:19 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-25 10:58:50 -0400 |
commit | 304f7e5e1d08fa2f5674c1323bd0ebd806c86b81 (patch) | |
tree | 0d69327f14a23a66061fc9d39dee1ec7c6b56932 /drivers/usb/musb/musb_gadget.c | |
parent | 3fc2aa5522ab958374d93ef5d2e12df7ee233c91 (diff) |
usb: gadget: Refactor request completion
Use the recently introduced usb_gadget_giveback_request() in favor of
direct invocation of the completion routine.
All places in drivers/usb/ matching "[-.]complete(" were replaced with a
call to usb_gadget_giveback_request(). This was compile-tested with all
ARM drivers enabled and runtime-tested for musb.
Signed-off-by: Michal Sojka <sojka@merica.cz>
Acked-by: Felipe Balbi <balbi@ti.com>
Tested-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/musb/musb_gadget.c')
-rw-r--r-- | drivers/usb/musb/musb_gadget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c index d4aa779339f1..24c8c0219790 100644 --- a/drivers/usb/musb/musb_gadget.c +++ b/drivers/usb/musb/musb_gadget.c | |||
@@ -176,7 +176,7 @@ __acquires(ep->musb->lock) | |||
176 | ep->end_point.name, request, | 176 | ep->end_point.name, request, |
177 | req->request.actual, req->request.length, | 177 | req->request.actual, req->request.length, |
178 | request->status); | 178 | request->status); |
179 | req->request.complete(&req->ep->end_point, &req->request); | 179 | usb_gadget_giveback_request(&req->ep->end_point, &req->request); |
180 | spin_lock(&musb->lock); | 180 | spin_lock(&musb->lock); |
181 | ep->busy = busy; | 181 | ep->busy = busy; |
182 | } | 182 | } |