Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3d6c3b42 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: ci13xxx_udc: Set OTG's peripheral to NULL in udc_remove"

parents 02c0a877 ab1674e6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3951,7 +3951,7 @@ static int udc_probe(struct ci13xxx_udc_driver *driver, struct device *dev,
	usb_del_gadget_udc(&udc->gadget);
remove_trans:
	if (udc->transceiver)
		otg_set_peripheral(udc->transceiver->otg, &udc->gadget);
		otg_set_peripheral(udc->transceiver->otg, NULL);

	err("error = %i", retval);
put_transceiver:
@@ -3989,7 +3989,7 @@ static void udc_remove(void)
	usb_del_gadget_udc(&udc->gadget);

	if (udc->transceiver) {
		otg_set_peripheral(udc->transceiver->otg, &udc->gadget);
		otg_set_peripheral(udc->transceiver->otg, NULL);
		usb_put_phy(udc->transceiver);
	}
	destroy_eps(udc);