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

Commit 6100ac72 authored by Douglas Anderson's avatar Douglas Anderson Committed by Kishon Vijay Abraham I
Browse files

phy: qcom-qusb2: Quiet -EPROBE_DEFER from qusb2_phy_probe()



The -EPROBE_DEFER virus demands special case code to avoid printing
error messages when the error is only -EPROBE_DEFER.  Spread the virus
to a new host: qusb2_phy_probe().  Specifically handle when our
regulators might not be ready yet.

Signed-off-by: default avatarDouglas Anderson <dianders@chromium.org>
Reviewed-by: default avatarVivek Gautam <vivek.gautam@codeaurora.org>
Signed-off-by: default avatarKishon Vijay Abraham I <kishon@ti.com>
parent 22fa10e5
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -800,7 +800,9 @@ static int qusb2_phy_probe(struct platform_device *pdev)

	ret = devm_regulator_bulk_get(dev, num, qphy->vregs);
	if (ret) {
		dev_err(dev, "failed to get regulator supplies\n");
		if (ret != -EPROBE_DEFER)
			dev_err(dev, "failed to get regulator supplies: %d\n",
				ret);
		return ret;
	}