diff options
author | Suresh Gupta <suresh.gupta@freescale.com> | 2014-04-11 14:33:22 (GMT) |
---|---|---|
committer | Jose Rivera <German.Rivera@freescale.com> | 2014-04-18 03:57:03 (GMT) |
commit | e32e7897039873adafb57263d4253ed3f878575b (patch) | |
tree | 32f577c09e07e22fef9335dff896f8e98bf78a48 /drivers/usb/gadget/fsl_udc_core.c | |
parent | 6321dc4e2c1f1ac6ea5ef03236dfaa092e73a862 (diff) | |
download | linux-fsl-qoriq-e32e7897039873adafb57263d4253ed3f878575b.tar.xz |
USB : Gadget : fsl: Fix the fault issue on rmmod
completion in udc_controller->done should be assign with proper
value before complete called. The complete called in fsl_udc_release
which intern called from usb_del_gadget_udc, so moving assignment
before calling usb_del_gadget_udc
Signed-off-by: Suresh Gupta <suresh.gupta@freescale.com>
Change-Id: I40867db4c11464d7d47e1fd55ed852b38c7d0e47
Reviewed-on: http://git.am.freescale.net:8181/10911
Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com>
Reviewed-by: Nikhil Badola <nikhil.badola@freescale.com>
Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
Diffstat (limited to 'drivers/usb/gadget/fsl_udc_core.c')
-rw-r--r-- | drivers/usb/gadget/fsl_udc_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/fsl_udc_core.c b/drivers/usb/gadget/fsl_udc_core.c index fa27a4c..c540dfa 100644 --- a/drivers/usb/gadget/fsl_udc_core.c +++ b/drivers/usb/gadget/fsl_udc_core.c @@ -2536,8 +2536,8 @@ static int __exit fsl_udc_remove(struct platform_device *pdev) if (!udc_controller) return -ENODEV; - usb_del_gadget_udc(&udc_controller->gadget); udc_controller->done = &done; + usb_del_gadget_udc(&udc_controller->gadget); fsl_udc_clk_release(); |