This patch fixes the error path of udc_start(). Now NULL is used to unset the peripheral with otg_set_peripheral().
Cc: stable <[email protected]> Reviewed-by: Richard Zhao <[email protected]> Signed-off-by: Marc Kleine-Budde <[email protected]> Signed-off-by: Alexander Shishkin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]> [mkl: backport to v3.5] Signed-off-by: Marc Kleine-Budde <[email protected]> --- Hello, this is a backport of: c9d1f947a85e38b6dded469470c95ed62430cb3f usb: chipidea: udc: fix error path in udc_start() to the v3.5 stable tree. regards, Marc 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 c017b96..84683ef 100644 --- a/drivers/usb/chipidea/udc.c +++ b/drivers/usb/chipidea/udc.c @@ -1741,7 +1741,7 @@ static int udc_start(struct ci13xxx *udc) remove_trans: if (udc->transceiver) { - otg_set_peripheral(udc->transceiver->otg, &udc->gadget); + otg_set_peripheral(udc->transceiver->otg, NULL); usb_put_transceiver(udc->transceiver); } -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe stable" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
