Commit a50758bb authored by Thierry Reding's avatar Thierry Reding Committed by Felipe Balbi
Browse files

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: default avatarThierry Reding <treding@nvidia.com>
Signed-off-by: default avatarFelipe Balbi <balbi@kernel.org>
parent 230c1aa3
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -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) {
		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) {
		if (err != -EPROBE_DEFER)
			dev_err(xudc->dev, "failed to request regulators: %d\n", err);

		return err;
	}