diff options
author | Heiko Schocher <hs@denx.de> | 2013-06-04 11:21:32 +0200 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2013-06-12 22:22:52 +0200 |
commit | c67b0e42a59c7ef15495bfde006398abaf2f562f (patch) | |
tree | 4cab04d60a7ac1ab8619b4375608927d8abacf03 | |
parent | d3e07478468a4544e803ff89285e400da6bc7b2d (diff) |
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 <hs@denx.de>
Cc: Lukasz Majewski <l.majewski@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Marek Vasut <marex@denx.de>
-rw-r--r-- | drivers/usb/gadget/composite.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |