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>
This commit is contained in:
parent
1d91a96268
commit
3c2d636a1c
1 changed files with 0 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue