usb: gadget: android: Remove device if probe fails
authorBenoit Goby <benoit@android.com>
Sat, 19 Oct 2013 00:16:38 +0000 (17:16 -0700)
committerJohn Stultz <john.stultz@linaro.org>
Mon, 21 Oct 2013 16:51:30 +0000 (09:51 -0700)
commitce5c776ed5ed5c8619930387c5c10ec3f0d53047
treede7c16c58fbccf32ee1add1c207d307e611e1a18
parent84bb63eb93e4448e891108195ba0a8f654329779
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>
Signed-off-by: John Stultz <john.stultz@linaro.org>
drivers/usb/gadget/android.c