usb: gadget: composite: Fix cdev null after rmmod
authorPeter Chiang <pchiang@nvidia.com>
Fri, 25 Sep 2015 10:04:17 +0000 (18:04 +0800)
committerMatthew Pedro <mapedro@nvidia.com>
Wed, 14 Oct 2015 16:02:08 +0000 (09:02 -0700)
commita71b1768148c325d5aa3ce40d1d9c5c1b577def3
tree2f46def03759a18d768cf5ced929e1658d8a843d
parent47a725211f33fe6c1b984a72af57dd193b7cae1c
usb: gadget: composite: Fix cdev null after rmmod

Avoid to disconnect gadget again after unbinding

bug 200141741

Change-Id: I6fadcb4c5b5262d861a865f24ba2d8666e126923
Signed-off-by: Peter Chiang <pchiang@nvidia.com>
Reviewed-on: http://git-master/r/805175
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Hui Fu <hfu@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
drivers/usb/gadget/composite.c