Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp6895798ybh; Thu, 8 Aug 2019 07:19:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqyuhyZHKhCmf3m7gSPOjiix7vgBONj/YBCg1CQ1Ho872pG10CYKvEhtislG8Y5m6UMRX9fm X-Received: by 2002:a17:902:7b97:: with SMTP id w23mr8049059pll.149.1565273961762; Thu, 08 Aug 2019 07:19:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565273961; cv=none; d=google.com; s=arc-20160816; b=piuFI6CqkfCkztPPG34pXau/8JGwpxRs8GFddWaimoj5tKgolnZtkRyxqY8+iaUvMX RRzImIZrcPhMC2U4e7+faW8nkJz9TUk/iNsJbN+gdIACKbni7kTQ+OtW2TpsLZCimpvB o4oxsTH/8aBxYalpdGhIcnWkYo/nxqA+xbi7y+Gplz/7b5maLV9grcgXj8rbgP41Ws2b m2ImhIr4O1lWHTcqAfeisBHhGR+4VxAFNN6fVutRnv62pa46zNyaB4u4lS0WizVzfMWW VjpI6SeLUmWivHVpptj6BU1dXEozwgelUhXi++5GDe8vm5cJjSrculbNTphfPy6U8IUu A4Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=wtFe+lHH5wgW8y/mXg/CY0VkdqJZERhAhmOoK1c4XW0=; b=QsPdOH4Ue5w3uGu/vHhwygEl6WeJDP7OAPSIONIZ/RbsMDNaRese8DlstQ4biVnDMU lyOajEP+nhg0/cWY30nzY3Q1ep6bVgg0a/Xo0vvwmrH6X9rh5xzLSHieaaxMcVkHFlN1 s0htCDyRilnVfm0kC/nc28s7wywPMFus8+GOPybZSWg8eVZykpWKECiOGT8ejJMc68qi CqNVAMxV6WPpfSjIJsrcqcPpCrXhrakU/1K8wmhBeRsE8CN/dnWY7hNDw/1BYury86l9 6UpYz9QlqKPV5MDo1PshIEr5U4t15vtQBJIW6iNwJzcC3qZVGZ63ppDJ6BTZASBJRYM2 AUTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=qJLZxufy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i186si54875057pge.9.2019.08.08.07.19.05; Thu, 08 Aug 2019 07:19:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=qJLZxufy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732304AbfHHMhJ (ORCPT + 99 others); Thu, 8 Aug 2019 08:37:09 -0400 Received: from mail.kmu-office.ch ([178.209.48.109]:48216 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728825AbfHHMhJ (ORCPT ); Thu, 8 Aug 2019 08:37:09 -0400 Received: from trochilidae.toradex.int (unknown [46.140.72.82]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 136CF5C0B09; Thu, 8 Aug 2019 14:37:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1565267827; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=wtFe+lHH5wgW8y/mXg/CY0VkdqJZERhAhmOoK1c4XW0=; b=qJLZxufy6ebIcIQeo0NH8stt2lYEQJkO0N9X1O+7FewYQ0bhsOhsmJvyDc4Gy3qZQBEpRL 9Z57C/em5CQK0zDHn0xW0LCttjt1WRiJPBM1x4LAQoZ5cUqPWLCOc7aRhIykPMyBrZ0+F2 y+7iV8Pu+34fux8y/dUCwKzx1anKrzs= From: Stefan Agner To: perex@perex.cz, tiwai@suse.com Cc: lgirdwood@gmail.com, broonie@kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Stefan Agner Subject: [PATCH] ASoC: soc-core: remove error due to probe deferral Date: Thu, 8 Aug 2019 14:36:55 +0200 Message-Id: <20190808123655.31520-1-stefan@agner.ch> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Stefan Agner Deferred probes shouldn't cause error messages in the boot log. Avoid printing with dev_err() in case EPROBE_DEFER is the return value. Signed-off-by: Stefan Agner --- sound/soc/soc-core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index fd6eaae6c0ed..98e1e80b5493 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -1985,9 +1985,11 @@ static int snd_soc_instantiate_card(struct snd_soc_card *card) mutex_lock(&client_mutex); for_each_card_prelinks(card, i, dai_link) { ret = soc_init_dai_link(card, dai_link); - if (ret) { + if (ret && ret != -EPROBE_DEFER) { dev_err(card->dev, "ASoC: failed to init link %s: %d\n", dai_link->name, ret); + } + if (ret) { mutex_unlock(&client_mutex); return ret; } -- 2.22.0