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

Commit 501fae51 authored by Kishon Vijay Abraham I's avatar Kishon Vijay Abraham I Committed by Felipe Balbi
Browse files

usb: dwc3: power off usb phy in error path



usb phy was power'ed on but was never power'ed off in the error path.
Fix it.

Signed-off-by: default avatarKishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 3088f108
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -569,6 +569,8 @@ static int dwc3_probe(struct platform_device *pdev)
	dwc3_event_buffers_cleanup(dwc);

err1:
	usb_phy_set_suspend(dwc->usb2_phy, 1);
	usb_phy_set_suspend(dwc->usb3_phy, 1);
	dwc3_core_exit(dwc);

err0: