From: mkl@pengutronix.de (Marc Kleine-Budde)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 2/4] usb: chipidea: udc: fix error path in udc_start()
Date: Thu, 28 Jun 2012 15:53:47 +0200 [thread overview]
Message-ID: <1340891629-13145-3-git-send-email-mkl@pengutronix.de> (raw)
In-Reply-To: <1340891629-13145-1-git-send-email-mkl@pengutronix.de>
This patch fixes the error path of udc_start(). Now NULL is used to
unset the peripheral with otg_set_peripheral().
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
---
drivers/usb/chipidea/udc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/chipidea/udc.c b/drivers/usb/chipidea/udc.c
index 5760a10..adcc77d 100644
--- a/drivers/usb/chipidea/udc.c
+++ b/drivers/usb/chipidea/udc.c
@@ -1739,7 +1739,7 @@ static int udc_start(struct ci13xxx *ci)
remove_trans:
if (ci->transceiver) {
- otg_set_peripheral(ci->transceiver->otg, &ci->gadget);
+ otg_set_peripheral(ci->transceiver->otg, NULL);
if (ci->global_phy)
usb_put_transceiver(ci->transceiver);
}
--
1.7.10
next prev parent reply other threads:[~2012-06-28 13:53 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-28 13:53 [PATCH v2 0/4] usb: chipidea: fix error handling and add dr_role property Marc Kleine-Budde
2012-06-28 13:53 ` [PATCH v2 1/4] usb: chipidea: pci: make platformdata static Marc Kleine-Budde
2012-06-28 14:06 ` Richard Zhao
2012-07-08 15:10 ` Richard Zhao
2012-07-08 17:48 ` Russell King - ARM Linux
2012-07-09 1:20 ` Richard Zhao
2012-06-28 13:53 ` Marc Kleine-Budde [this message]
2012-06-28 13:53 ` [PATCH v2 3/4] usb: chipidea: ci13xxx-imx: add "dr_mode" property to device tree bindings Marc Kleine-Budde
2012-06-29 1:43 ` Richard Zhao
2012-06-29 7:47 ` Marc Kleine-Budde
2012-06-29 8:45 ` Richard Zhao
2012-06-29 9:29 ` Marc Kleine-Budde
2012-06-30 1:40 ` Richard Zhao
2012-06-29 15:51 ` Stephen Warren
2012-06-30 1:19 ` Richard Zhao
2012-07-02 20:04 ` Stephen Warren
2012-07-03 2:22 ` Peter Chen
2012-07-03 3:00 ` Richard Zhao
2012-07-03 7:02 ` Lothar Waßmann
2012-07-03 7:10 ` Richard Zhao
2012-06-30 1:33 ` Richard Zhao
2012-06-30 21:57 ` Sergei Shtylyov
2012-06-28 13:53 ` [PATCH v2 4/4] ARM: dts: imx23,28: limit usb to host role Marc Kleine-Budde
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=1340891629-13145-3-git-send-email-mkl@pengutronix.de \
--to=mkl@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
/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;
as well as URLs for NNTP newsgroup(s).