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)
committerFelipe Balbi <balbi@ti.com>
Tue, 24 Jan 2012 13:41:57 +0000 (15:41 +0200)
commit37fd37108449d574da11aa9055c5c8afb39ff226
treed3ffd76832f21aaed75f3403d787d6edd32742c8
parent28bd6222544d7559edf9ff487172e45ce46e2578
usb: gadget: langwell: don't call gadget's disconnect()

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: stable@vger.kernel.org # v3.2
Cc: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Cc: linux-usb@vger.kernel.org
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/langwell_udc.c