summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2013-06-04 11:21:32 +0200
committerMarek Vasut <marex@denx.de>2013-06-12 22:22:52 +0200
commitc67b0e42a59c7ef15495bfde006398abaf2f562f (patch)
tree4cab04d60a7ac1ab8619b4375608927d8abacf03 /drivers
parentd3e07478468a4544e803ff89285e400da6bc7b2d (diff)
downloadu-boot-imx-c67b0e42a59c7ef15495bfde006398abaf2f562f.zip
u-boot-imx-c67b0e42a59c7ef15495bfde006398abaf2f562f.tar.gz
u-boot-imx-c67b0e42a59c7ef15495bfde006398abaf2f562f.tar.bz2
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/gadget/composite.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c
index 2c5600e..f30778a 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;
}