Commit b2c2271c authored by Felipe Balbi's avatar Felipe Balbi

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: default avatarFelipe Balbi <balbi@ti.com>
parent dc47ce90
...@@ -2076,7 +2076,6 @@ int __devinit dwc3_gadget_init(struct dwc3 *dwc) ...@@ -2076,7 +2076,6 @@ int __devinit dwc3_gadget_init(struct dwc3 *dwc)
void dwc3_gadget_exit(struct dwc3 *dwc) void dwc3_gadget_exit(struct dwc3 *dwc)
{ {
int irq; int irq;
int i;
usb_del_gadget_udc(&dwc->gadget); usb_del_gadget_udc(&dwc->gadget);
irq = platform_get_irq(to_platform_device(dwc->dev), 0); irq = platform_get_irq(to_platform_device(dwc->dev), 0);
...@@ -2084,9 +2083,6 @@ void dwc3_gadget_exit(struct dwc3 *dwc) ...@@ -2084,9 +2083,6 @@ void dwc3_gadget_exit(struct dwc3 *dwc)
dwc3_writel(dwc->regs, DWC3_DEVTEN, 0x00); dwc3_writel(dwc->regs, DWC3_DEVTEN, 0x00);
free_irq(irq, dwc); free_irq(irq, dwc);
for (i = 0; i < ARRAY_SIZE(dwc->eps); i++)
__dwc3_gadget_ep_disable(dwc->eps[i]);
dwc3_gadget_free_endpoints(dwc); dwc3_gadget_free_endpoints(dwc);
dma_free_coherent(dwc->dev, 512, dwc->ep0_bounce, dma_free_coherent(dwc->dev, 512, dwc->ep0_bounce,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment