Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751646AbdHQLxf (ORCPT ); Thu, 17 Aug 2017 07:53:35 -0400 Received: from hqemgate16.nvidia.com ([216.228.121.65]:8599 "EHLO hqemgate16.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750812AbdHQLxd (ORCPT ); Thu, 17 Aug 2017 07:53:33 -0400 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Thu, 17 Aug 2017 04:53:21 -0700 From: Timo Alho To: , , CC: , , , Timo Alho Subject: [PATCH] mmc: tegra: suppress errors when probe is deferred Date: Thu, 17 Aug 2017 14:52:46 +0300 Message-ID: <1502970766-23541-1-git-send-email-talho@nvidia.com> X-Mailer: git-send-email 2.7.4 X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 988 Lines: 30 Don't print error message when clk_get() returns -EPROBE_DEFER. On recent Tegra chips (t186 onwards), the clocks are provided by auxiliary microprocessor (bpmp) and until the driver for it is probed clocks are not available. While at it, change the real error message more meaningful. Signed-off-by: Timo Alho --- drivers/mmc/host/sdhci-tegra.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c index f668a6f..cdde9ff 100644 --- a/drivers/mmc/host/sdhci-tegra.c +++ b/drivers/mmc/host/sdhci-tegra.c @@ -501,8 +501,10 @@ 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 controller clock: %d\n", rc); goto err_clk_get; } clk_prepare_enable(clk); -- 2.7.4