From: Lukasz Majewski <l.majewski@samsung.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] usb, composite: after unregister gadget driver set composite to NULL
Date: Tue, 04 Jun 2013 12:17:17 +0200 [thread overview]
Message-ID: <20130604121717.4e6c960c@amdc308.digital.local> (raw)
In-Reply-To: <1370337692-16693-1-git-send-email-hs@denx.de>
Hi Heiko,
> 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>
> ---
> drivers/usb/gadget/composite.c | 1 +
> 1 Datei ge?ndert, 1 Zeile hinzugef?gt(+)
>
> diff --git a/drivers/usb/gadget/composite.c
> b/drivers/usb/gadget/composite.c index 0716e52..f867793 100644
> --- a/drivers/usb/gadget/composite.c
> +++ b/drivers/usb/gadget/composite.c
> @@ -1099,4 +1099,5 @@ void usb_composite_unregister(struct
> usb_composite_driver *driver) if (composite != driver)
> return;
> usb_gadget_unregister_driver(&composite_driver);
> + composite = NULL;
Thanks for spotting.
> }
Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>
--
Best regards,
Lukasz Majewski
Samsung R&D Poland Institute (SRPOL) | Linux Platform Group
next prev parent reply other threads:[~2013-06-04 10:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-04 9:21 [U-Boot] usb, composite: after unregister gadget driver set composite to NULL Heiko Schocher
2013-06-04 10:17 ` Lukasz Majewski [this message]
2013-06-09 20:06 ` Marek Vasut
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130604121717.4e6c960c@amdc308.digital.local \
--to=l.majewski@samsung.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox