summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/arcotg_udc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/gadget/arcotg_udc.c')
-rwxr-xr-xdrivers/usb/gadget/arcotg_udc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/usb/gadget/arcotg_udc.c b/drivers/usb/gadget/arcotg_udc.c
index c97eac3a6696..7429d4b13130 100755
--- a/drivers/usb/gadget/arcotg_udc.c
+++ b/drivers/usb/gadget/arcotg_udc.c
@@ -3269,6 +3269,8 @@ static int fsl_udc_remove(struct platform_device *pdev)
dr_wake_up_enable(udc_controller, false);
dr_discharge_line(pdata, true);
+
+ dr_clk_gate(false);
/* DR has been stopped in usb_gadget_unregister_driver() */
remove_proc_file();
@@ -3303,9 +3305,9 @@ static int fsl_udc_remove(struct platform_device *pdev)
device_unregister(&udc_controller->gadget.dev);
/* free udc --wait for the release() finished */
wait_for_completion(&done);
+
/*
- * do platform specific un-initialization:
- * release iomux pins, etc.
+ * do platform specific un-initialization
*/
if (pdata->exit)
pdata->exit(pdata->pdev);