]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
sdhci: tegra: Do not log error message on deferred probe
authorThierry Reding <treding@nvidia.com>
Tue, 4 Jun 2019 15:34:46 +0000 (17:34 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 10 Jun 2019 15:11:09 +0000 (17:11 +0200)
Recent changes have made it much more likely that clocks are not available,
when the SDHCI driver is first probed. However, that is a situation that
the driver can cope with just fine.

To avoid confusion, don't output an error when this happens.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-tegra.c

index 781a3e106d9a08d8ee1a6f5f180ad3e248731e13..f4d4761cf20ab4f700e1f4054dc8dfbf9318962c 100644 (file)
@@ -1541,8 +1541,11 @@ static int sdhci_tegra_probe(struct platform_device *pdev)
 
        clk = devm_clk_get(mmc_dev(host->mmc), NULL);
        if (IS_ERR(clk)) {
-               dev_err(mmc_dev(host->mmc), "clk err\n");
                rc = PTR_ERR(clk);
+
+               if (rc != -EPROBE_DEFER)
+                       dev_err(&pdev->dev, "failed to get clock: %d\n", rc);
+
                goto err_clk_get;
        }
        clk_prepare_enable(clk);