On Thu, Aug 23, 2012 at 07:30:44PM +0200, Marc Kleine-Budde wrote: > 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@xxxxxxxxxxxxxx> Reviewed-by: Richard Zhao <richard.zhao@xxxxxxxxxxxxx> > --- > 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 c7a032a..e4db7af 100644 > --- a/drivers/usb/chipidea/udc.c > +++ b/drivers/usb/chipidea/udc.c > @@ -1729,7 +1729,7 @@ static int udc_start(struct ci13xxx *ci) > > remove_trans: > if (!IS_ERR_OR_NULL(ci->transceiver)) { > - otg_set_peripheral(ci->transceiver->otg, &ci->gadget); > + otg_set_peripheral(ci->transceiver->otg, NULL); > if (ci->global_phy) > usb_put_phy(ci->transceiver); > } > -- > 1.7.10.4 > > -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html