Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 00a9584e authored by Thierry Reding's avatar Thierry Reding Committed by Ulf Hansson
Browse files

sdhci: tegra: Do not log error message on deferred probe



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: default avatarThierry Reding <treding@nvidia.com>
Acked-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 5f2f4e0d
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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);