From: Heiko Schocher Date: Tue, 4 Jun 2013 09:21:32 +0000 (+0200) Subject: usb, composite: after unregister gadget driver set composite to NULL X-Git-Tag: v2013.07-rc1~3^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c67b0e42a59c7ef15495bfde006398abaf2f562f;p=u-boot usb, composite: after unregister gadget driver set composite to NULL Without this, second usb_composite_register() call fails always with -EINVAL. Signed-off-by: Heiko Schocher Cc: Lukasz Majewski Cc: Kyungmin Park Cc: Marek Vasut --- diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c index 2c5600ed52..f30778a163 100644 --- a/drivers/usb/gadget/composite.c +++ b/drivers/usb/gadget/composite.c @@ -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; }