usb: gadget: fsl_udc: fix dequeuing a request in progress
authorLi Yang <leoli@freescale.com>
Wed, 23 Nov 2011 12:12:56 +0000 (20:12 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 29 Nov 2011 14:19:04 +0000 (23:19 +0900)
commit6414e94c203d92b163ca61b5f51a25b80a621dbe
tree3fa3023953222644161601500170687399d75369
parent5ce1d0eb1cd1071347618d0a95515f300239d201
usb: gadget: fsl_udc: fix dequeuing a request in progress

The original implementation of dequeuing a request in progress
is not correct.  Change to use a correct process and also clean
up the related functions a little bit.

Signed-off-by: Li Yang <leoli@freescale.com>
Acked-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/fsl_udc_core.c
drivers/usb/gadget/fsl_usb2_udc.h