提交 a50758bb 编写于 作者: T Thierry Reding 提交者: Felipe Balbi

usb: gadget: tegra-xudc: Do not print errors on probe deferral

Probe deferral is an expected condition and can happen multiple times
during boot. Make sure not to output an error message in that case
because they are not useful.
Signed-off-by: NThierry Reding <treding@nvidia.com>
Signed-off-by: NFelipe Balbi <balbi@kernel.org>
上级 230c1aa3
......@@ -3781,7 +3781,9 @@ static int tegra_xudc_probe(struct platform_device *pdev)
err = devm_clk_bulk_get(&pdev->dev, xudc->soc->num_clks, xudc->clks);
if (err) {
dev_err(xudc->dev, "failed to request clocks: %d\n", err);
if (err != -EPROBE_DEFER)
dev_err(xudc->dev, "failed to request clocks: %d\n", err);
return err;
}
......@@ -3796,7 +3798,9 @@ static int tegra_xudc_probe(struct platform_device *pdev)
err = devm_regulator_bulk_get(&pdev->dev, xudc->soc->num_supplies,
xudc->supplies);
if (err) {
dev_err(xudc->dev, "failed to request regulators: %d\n", err);
if (err != -EPROBE_DEFER)
dev_err(xudc->dev, "failed to request regulators: %d\n", err);
return err;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册