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

Commit a6ef3e02 authored by John Youn's avatar John Youn Committed by Felipe Balbi
Browse files

usb: dwc2: Proper cleanup on dr_mode failure



Cleanup in probe if we fail to get dr_mode.

Signed-off-by: default avatarJohn Youn <johnyoun@synopsys.com>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent 907a4447
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -562,7 +562,7 @@ static int dwc2_driver_probe(struct platform_device *dev)


	retval = dwc2_get_dr_mode(hsotg);
	retval = dwc2_get_dr_mode(hsotg);
	if (retval)
	if (retval)
		return retval;
		goto error;


	/*
	/*
	 * Reset before dwc2_get_hwparams() then it could get power-on real
	 * Reset before dwc2_get_hwparams() then it could get power-on real