diff options
author | Thierry Reding <treding@nvidia.com> | 2019-06-04 17:34:46 +0200 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2019-06-10 17:11:09 +0200 |
commit | 00a9584eadf39b12dac7495250dc508c6b106f81 (patch) | |
tree | b7efd3dca63448ce4d86ba6a4bf1eab0b183e30f /drivers/mmc | |
parent | 5f2f4e0da2b5d4f4a188480c13f40c848a5f7d15 (diff) | |
download | talos-op-linux-00a9584eadf39b12dac7495250dc508c6b106f81.tar.gz talos-op-linux-00a9584eadf39b12dac7495250dc508c6b106f81.zip |
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: Thierry Reding <treding@nvidia.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/sdhci-tegra.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c index 781a3e106d9a..f4d4761cf20a 100644 --- a/drivers/mmc/host/sdhci-tegra.c +++ b/drivers/mmc/host/sdhci-tegra.c @@ -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); |