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

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

Merge "usb: dwc3: Fix probe deferral issue"

parents 560af5d4 3aacad95
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -2821,8 +2821,11 @@ static int dwc3_msm_get_clk_gdsc(struct dwc3_msm *mdwc)
	int ret;

	mdwc->dwc3_gdsc = devm_regulator_get(mdwc->dev, "USB3_GDSC");
	if (IS_ERR(mdwc->dwc3_gdsc))
	if (IS_ERR(mdwc->dwc3_gdsc)) {
		if (PTR_ERR(mdwc->dwc3_gdsc) == -EPROBE_DEFER)
			return PTR_ERR(mdwc->dwc3_gdsc);
		mdwc->dwc3_gdsc = NULL;
	}

	mdwc->xo_clk = devm_clk_get(mdwc->dev, "xo");
	if (IS_ERR(mdwc->xo_clk)) {