summaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb/musb_gadget.c
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2011-10-02 21:46:47 +0300
committerGreg Kroah-Hartman <gregkh@suse.de>2011-11-14 11:51:16 -0800
commit3c2d636a1c6f1f84adf77737ca716f956595ae80 (patch)
treecdf159b21949d5c725c70ce67357c4396bbafa5e /drivers/usb/musb/musb_gadget.c
parent1d91a96268a0b2d7301c3ee67a784b712f34010f (diff)
downloadop-kernel-dev-3c2d636a1c6f1f84adf77737ca716f956595ae80.zip
op-kernel-dev-3c2d636a1c6f1f84adf77737ca716f956595ae80.tar.gz
usb: musb: gadget: don't call ->disconnect() on exit
that has already being done by udc-core.c. It's unnecessary and might cause issues with some gadget drivers. Tested: Ajay Kumar Gupta <ajay.gupta@ti.com> Signed-off-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/musb/musb_gadget.c')
-rw-r--r--drivers/usb/musb/musb_gadget.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c
index ae4a20a..d51043a 100644
--- a/drivers/usb/musb/musb_gadget.c
+++ b/drivers/usb/musb/musb_gadget.c
@@ -1999,10 +1999,6 @@ static void stop_activity(struct musb *musb, struct usb_gadget_driver *driver)
nuke(&hw_ep->ep_out, -ESHUTDOWN);
}
}
-
- spin_unlock(&musb->lock);
- driver->disconnect(&musb->g);
- spin_lock(&musb->lock);
}
}
OpenPOWER on IntegriCloud