usb: gadget: android: Remove device if probe fails
authorBenoit Goby <benoit@android.com>
Sat, 19 Oct 2013 00:16:38 +0000 (17:16 -0700)
committerBenoit Goby <benoitgoby@google.com>
Thu, 24 Oct 2013 19:30:28 +0000 (19:30 +0000)
commit50ce1106dc0d0e9a631795b5c51ae171d62c9910
treee06f0d2a2c79323695329f49793ad8e1fa544784
parent637dd81343b2019938cf6307f75bb7c934a99fc2
usb: gadget: android: Remove device if probe fails

Make sure the android0 device is removed before we can destroy
the class.

Change-Id: Id584888c407beb80a1df4990f73fe31ccb9d4767
Signed-off-by: Benoit Goby <benoit@android.com>
drivers/usb/gadget/android.c