summaryrefslogtreecommitdiff
path: root/drivers/usb/otg
diff options
context:
space:
mode:
authormake shi <b15407@freescale.com>2012-11-08 15:50:20 +0800
committermake shi <b15407@freescale.com>2012-11-14 17:52:19 +0800
commit649363219c76a2c91db7df3effeb61ba201c560c (patch)
tree1e3858f756bcae1f59a8d7ff1c1d703eed392f81 /drivers/usb/otg
parentb8ee7558dca70f7db6a93c0d18d8c7a2bf87476b (diff)
ENGR00233051-04 Mx6 USB: driver implementation for OTG modulization
- reset fsl_otg_dev to NULL after kfree - remove __exit_p prefix to make sure fsl_udc_remove is called when module unload Signed-off-by: make shi <b15407@freescale.com>
Diffstat (limited to 'drivers/usb/otg')
-rwxr-xr-xdrivers/usb/otg/fsl_otg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/otg/fsl_otg.c b/drivers/usb/otg/fsl_otg.c
index 4205ed9aaec9..d728cf92457d 100755
--- a/drivers/usb/otg/fsl_otg.c
+++ b/drivers/usb/otg/fsl_otg.c
@@ -1398,6 +1398,7 @@ static int fsl_otg_remove(struct platform_device *pdev)
kfree(fsl_otg_dev);
+ fsl_otg_dev = NULL;
remove_proc_file();
unregister_chrdev(FSL_OTG_MAJOR, FSL_OTG_NAME);