aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3/gadget.c
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2011-10-07 15:40:41 -0400
committerFelipe Balbi <balbi@ti.com>2011-12-12 04:48:09 -0500
commitb2c2271c826589c5c5b285a5a32e158d36d263d9 (patch)
treebbdfa7b51a89dde4985627d7a327ea86d3d51c26 /drivers/usb/dwc3/gadget.c
parentdc47ce90c3a822cd7c9e9339fe4d5f61dcb26b50 (diff)
usb: dwc3: gadget: don't disable endpoints on exit
when we remove the gadget driver, it will already do that for us. Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3/gadget.c')
-rw-r--r--drivers/usb/dwc3/gadget.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
index 25dbd8614e72..46ed15bca19f 100644
--- a/drivers/usb/dwc3/gadget.c
+++ b/drivers/usb/dwc3/gadget.c
@@ -2076,7 +2076,6 @@ err0:
2076void dwc3_gadget_exit(struct dwc3 *dwc) 2076void dwc3_gadget_exit(struct dwc3 *dwc)
2077{ 2077{
2078 int irq; 2078 int irq;
2079 int i;
2080 2079
2081 usb_del_gadget_udc(&dwc->gadget); 2080 usb_del_gadget_udc(&dwc->gadget);
2082 irq = platform_get_irq(to_platform_device(dwc->dev), 0); 2081 irq = platform_get_irq(to_platform_device(dwc->dev), 0);
@@ -2084,9 +2083,6 @@ void dwc3_gadget_exit(struct dwc3 *dwc)
2084 dwc3_writel(dwc->regs, DWC3_DEVTEN, 0x00); 2083 dwc3_writel(dwc->regs, DWC3_DEVTEN, 0x00);
2085 free_irq(irq, dwc); 2084 free_irq(irq, dwc);
2086 2085
2087 for (i = 0; i < ARRAY_SIZE(dwc->eps); i++)
2088 __dwc3_gadget_ep_disable(dwc->eps[i]);
2089
2090 dwc3_gadget_free_endpoints(dwc); 2086 dwc3_gadget_free_endpoints(dwc);
2091 2087
2092 dma_free_coherent(dwc->dev, 512, dwc->ep0_bounce, 2088 dma_free_coherent(dwc->dev, 512, dwc->ep0_bounce,