--- 87194d76595511e03b43c70c0990d857cb4dad48 +++ 88b2b86642b642f0bff9cff27f46dbbb9e33d0f8 @@ -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;