mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-11-29 06:31:28 +01:00
usb: musb: fill in usb_gadget_unregister_driver
Add missing missing disconnect and unbind calls to the musb gadget driver's usb_gadget_unregister_driver function. Otherwise, any gadget drivers fail to uninitialize and run a 2nd time. Signed-off-by: Rob Herring <robh@kernel.org>
This commit is contained in:
parent
52d45012ff
commit
078d7302ac
@ -204,7 +204,10 @@ int usb_gadget_register_driver(struct usb_gadget_driver *driver)
|
|||||||
|
|
||||||
int usb_gadget_unregister_driver(struct usb_gadget_driver *driver)
|
int usb_gadget_unregister_driver(struct usb_gadget_driver *driver)
|
||||||
{
|
{
|
||||||
/* TODO: implement me */
|
if (driver->disconnect)
|
||||||
|
driver->disconnect(&gadget->g);
|
||||||
|
if (driver->unbind)
|
||||||
|
driver->unbind(&gadget->g);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_MUSB_GADGET */
|
#endif /* CONFIG_MUSB_GADGET */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user