From patchwork Mon Aug 6 08:43:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 10556687 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B90C513BB for ; Mon, 6 Aug 2018 08:43:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A502F290EC for ; Mon, 6 Aug 2018 08:43:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 96C3729217; Mon, 6 Aug 2018 08:43:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2897D290EC for ; Mon, 6 Aug 2018 08:43:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726462AbeHFKvN (ORCPT ); Mon, 6 Aug 2018 06:51:13 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:39195 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725951AbeHFKvM (ORCPT ); Mon, 6 Aug 2018 06:51:12 -0400 Received: by mail-wr1-f66.google.com with SMTP id h10-v6so11535877wre.6 for ; Mon, 06 Aug 2018 01:43:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id; bh=VU6e4GfG2iXdHiURflCugDBBIZkFlimblY6zlQ48LMo=; b=sDLI8dvWUyyV30hpoV1xxgWKwGm9AUVSbLNa/m8I5qTK/KPz/f9uSfrmAl7awGDPQP WqXaAW/XTCN4wdhrR/6AXoRskImAangY4TYkFE5lGnNRJ9N6UGVtB0M/j24cx6F8hSkz wjY8faH7QOAnwfaf0GO4w2fG1JKl/GYy0Kj12FG6YjtL6QytIGrgQH1TYKbRAvxibdrS oAsARehcgQP+P58DIVJFO6Ucwe8ZvqS7hSEkYQ7B/7fe081t6lhaZ0L3HyW7ESNSgvse zriVoxAKvRATr++o86ri7X9rQE9GVsz5Z3bR4DV0q8cr+fsimEEk3f8uHY5waMWAZx3o twIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=VU6e4GfG2iXdHiURflCugDBBIZkFlimblY6zlQ48LMo=; b=HjjMgnf6smx7GtlrFlCTuZDSoBtTI0gkm3HMFPMGMqgjrJfb4rko4GWlHLrp07td3u gtyT7ZOI0HsYQprsT6J36Vj/ocISC5EvzkJ9rG5f+QuIYvPGvVC4zE1KUcUTX4emg9BO Jw4Lon3PcGJkJw09G0GS4lMp6vN7gL+t3EeXF3DpU5z5AJ3tcOvksdkVg63p2gkg6pLj p8j4oGq52xkMs8bLhpVQqCQiuDe2JxnOVPQ36cZ3IDDHlt6p3hxya52Ziu+UEVZMYzVK y40ASpJYmjlifJ810Bc70ZlOw417S3YwFZLFstOLmnafEdNv6fscXADkojCRH2NJygbu nAZg== X-Gm-Message-State: AOUpUlG0mTjfeBBxGHUGVlK4UYvDsn4YAEXg2qL4qatRkYddv6pRyYlh UfS1UCTJufQw0BzHKexuUpfwag== X-Google-Smtp-Source: AAOMgpfEKxbOxU/ZiP8ilmGH32SubfU3IiuVjfQXSI+bgYaV85JObZ8wUU8gvpfaWWEkiWtaF6eRgw== X-Received: by 2002:adf:9e84:: with SMTP id a4-v6mr8773551wrf.70.1533544991733; Mon, 06 Aug 2018 01:43:11 -0700 (PDT) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id 7-v6sm12333972wmr.16.2018.08.06.01.43.11 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Mon, 06 Aug 2018 01:43:11 -0700 (PDT) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu Cc: Adrian Hunter , linux-mmc@vger.kernel.org, Jaehoon Chung , u-boot@lists.denx.de, linux-arm-kernel@lists.infradead.org, Ulf Hansson Subject: [PATCH] mmc: sdhci-of-arasan: Do now show error message in case of deffered probe Date: Mon, 6 Aug 2018 10:43:10 +0200 Message-Id: X-Mailer: git-send-email 1.9.1 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- drivers/mmc/host/sdhci-of-arasan.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-of-arasan.c b/drivers/mmc/host/sdhci-of-arasan.c index e3332a522a5d..e65f3bce3643 100644 --- a/drivers/mmc/host/sdhci-of-arasan.c +++ b/drivers/mmc/host/sdhci-of-arasan.c @@ -772,7 +772,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; }