--- drivers/usb/gadget/android.c
+++ drivers/usb/gadget/android.c
@@ -1680,11 +1680,6 @@ 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;