mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Signed-off-by: Felipe Balbi <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
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