From: Michal Simek Date: Mon, 6 Aug 2018 08:43:10 +0000 (+0200) Subject: mmc: sdhci-of-arasan: Do now show error message in case of deffered probe X-Git-Tag: for-linus-20181026~75^2~128 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=60208a267208c27fa3f23dfd36cbda180471fa98;p=linux-block.git mmc: sdhci-of-arasan: Do now show error message in case of deffered probe When mmc-pwrseq property is passed mmc_pwrseq_alloc() can return -EPROBE_DEFER because driver for power sequence provider is not probed yet. Do not show error message when this situation happens. Signed-off-by: Michal Simek Signed-off-by: Ulf Hansson --- diff --git a/drivers/mmc/host/sdhci-of-arasan.c b/drivers/mmc/host/sdhci-of-arasan.c index a40bcc27f187..b806b24a3e5f 100644 --- a/drivers/mmc/host/sdhci-of-arasan.c +++ b/drivers/mmc/host/sdhci-of-arasan.c @@ -788,7 +788,8 @@ static int sdhci_arasan_probe(struct platform_device *pdev) ret = mmc_of_parse(host->mmc); if (ret) { - dev_err(&pdev->dev, "parsing dt failed (%d)\n", ret); + if (ret != -EPROBE_DEFER) + dev_err(&pdev->dev, "parsing dt failed (%d)\n", ret); goto unreg_clk; }