usb: gadget: langwell: don't call gadget's disconnect()
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>
Wed, 21 Dec 2011 08:19:40 +0000 (10:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Feb 2012 17:22:11 +0000 (09:22 -0800)
commite64e861c1c9c38a0e6a45da1c7d6bdbaba4588e1
tree6900ec1e41f435fdfd2c4319d10632c58f29d853
parentb70ce05260a8e14989c8f9701ec1a9b76e879402
usb: gadget: langwell: don't call gadget's disconnect()

commit 37fd37108449d574da11aa9055c5c8afb39ff226 upstream.

UDC core will call disconnect() and unbind() for us upon the gadget
removal, so we should not do it ourselves. Otherwise, a composite
gadget will explode, for example. Others might too.

This was introduced during conversion to new style gadget in 2c7f0989
(usb: gadget: langwell: convert to new style).

Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Cc: linux-usb@vger.kernel.org
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/langwell_udc.c