Commit 22fa10e5 authored by Douglas Anderson's avatar Douglas Anderson Committed by Kishon Vijay Abraham I

phy: qcom-qmp: Quiet -EPROBE_DEFER from qcom_qmp_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: qcom_qmp_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 c8b427ed
...@@ -1586,7 +1586,9 @@ static int qcom_qmp_phy_probe(struct platform_device *pdev) ...@@ -1586,7 +1586,9 @@ static int qcom_qmp_phy_probe(struct platform_device *pdev)
ret = qcom_qmp_phy_vreg_init(dev); ret = qcom_qmp_phy_vreg_init(dev);
if (ret) { 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; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment