Commit c67b0e42 authored by Heiko Schocher's avatar Heiko Schocher Committed by Marek Vasut
Browse files

usb, composite: after unregister gadget driver set composite to NULL



Without this, second usb_composite_register() call fails always
with -EINVAL.
Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
Cc: Lukasz Majewski <l.majewski@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Marek Vasut <marex@denx.de>
parent d3e07478
......@@ -1098,4 +1098,5 @@ void usb_composite_unregister(struct usb_composite_driver *driver)
if (composite != driver)
return;
usb_gadget_unregister_driver(&composite_driver);
composite = NULL;
}
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