Commit fc696881 authored by Suresh Gupta's avatar Suresh Gupta Committed by Felipe Balbi

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: default avatarSuresh Gupta <suresh.gupta@freescale.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 0fca91b8
...@@ -2532,8 +2532,8 @@ static int __exit fsl_udc_remove(struct platform_device *pdev) ...@@ -2532,8 +2532,8 @@ static int __exit fsl_udc_remove(struct platform_device *pdev)
if (!udc_controller) if (!udc_controller)
return -ENODEV; return -ENODEV;
usb_del_gadget_udc(&udc_controller->gadget);
udc_controller->done = &done; udc_controller->done = &done;
usb_del_gadget_udc(&udc_controller->gadget);
fsl_udc_clk_release(); fsl_udc_clk_release();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment