Samsung VZW MB1 update
/drivers/usb/gadget/android.c
blob:88b2b86642b642f0bff9cff27f46dbbb9e33d0f8 -> blob:87194d76595511e03b43c70c0990d857cb4dad48
--- drivers/usb/gadget/android.c
+++ drivers/usb/gadget/android.c
@@ -1680,6 +1680,11 @@ static void android_disconnect(struct us
unsigned long flags;
composite_disconnect(gadget);
+ /* accessory HID support can be active while the
+ accessory function is not actually enabled,
+ so we need to inform it when we are disconnected.
+ */
+ acc_disconnect();
spin_lock_irqsave(&cdev->lock, flags);
dev->connected = 0;