]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
phy: tegra: Don't warn on probe deferral
authorJon Hunter <jonathanh@nvidia.com>
Wed, 11 Nov 2020 10:37:08 +0000 (10:37 +0000)
committerVinod Koul <vkoul@kernel.org>
Mon, 16 Nov 2020 09:49:03 +0000 (15:19 +0530)
Deferred probe is an expected return value for devm_regulator_bulk_get().
Given that the driver deals with it properly, there's no need to output a
warning that may potentially confuse users.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Acked-by: JC Kuo <jckuo@nvidia.com>
Link: https://lore.kernel.org/r/20201111103708.152566-1-jonathanh@nvidia.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/tegra/xusb.c

index ea9d93097ad85dc024ccd46d0cf27685fcd055d4..40e03c931340b1df6c3c88408bf5b140f1936cf1 100644 (file)
@@ -1198,7 +1198,7 @@ static int tegra_xusb_padctl_probe(struct platform_device *pdev)
        err = devm_regulator_bulk_get(&pdev->dev, padctl->soc->num_supplies,
                                      padctl->supplies);
        if (err < 0) {
-               dev_err(&pdev->dev, "failed to get regulators: %d\n", err);
+               dev_err_probe(&pdev->dev, err, "failed to get regulators\n");
                goto remove;
        }