From patchwork Tue Dec 12 23:10:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Golle X-Patchwork-Id: 177656 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp8057756vqy; Tue, 12 Dec 2023 15:10:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IFZg2ROpurIkUZ5ZQg8fFWOJjL4qgus6a/bkd0kVsN11qrrekRfEUlcDRlqGEqnRhR/xM96 X-Received: by 2002:a17:903:2344:b0:1d0:76f4:e41b with SMTP id c4-20020a170903234400b001d076f4e41bmr3672163plh.45.1702422645616; Tue, 12 Dec 2023 15:10:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702422645; cv=none; d=google.com; s=arc-20160816; b=ClLh84RSOqweJu2Kkb0R1ydlUvycMjH/lxl6d5iypKKZzxUNg8q/UPPPCC+NFxS8ym +YbicetWwovkkthuCV12ruBvDAiJi/M2d8b1+xGak9KswXHg95rZbzcio1YXv4Y7h7d1 Cbbr+dhxn6267lZ5FmTM2Y2xTwweIMIGZDVOdfIhQffzj/eO/crK7vTi/mAR+LlPX5yd GgbPJGdrHeRzqLC/GbGA15uRABUG8tZxq+C9wlJZjdIwrGtla0u44bXOtFZ5OCyJXVHd LYHrgsd1UkzcOP6xgPfZ/AGUZxQ2wiRerpuRQpE2BuwBwizJo5M4SUXjGgQ2ZZ//gbe3 MNhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:to:from:date; bh=+0Py1qpCFXD5DfwM+BDWStOAQ+1sIGVxJBrNo8nRb2g=; fh=FEEX/8bciNAlGMJJ595+FZ8TS2yHaAXESRYbpZ9dpLo=; b=rZ7NWHz3KGko7ILeI4vuVkKnYHIatPuC3D5bEcfRWlFDgZtXqWIj/afXv+jGW/m3vh fM6djT/qdVsKLbyGHptQ5fE+0YMInVByllfcsRJc4eTNTx2tL+LBW3M9QnNXvpTPEFHb WsUq687EljNsK+cgMgB9/GoBlKKIVGcQWl7H2fDKz6gPh7h2nJHFrTlaBPRj+SRHmw3J k5dPvY66mlUIKVSx9nMwOp/yKOJyDuNaIJ6jqVxm2lYGadBIKieWvhixLhVc/hLA5Zce YOaM8Jx8eCAzN++vG0WUd4X8KJKLgyZDhtGDztVLQodb46b7FOQgsSMEfX1q+MV3CrTC ysLA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id je22-20020a170903265600b001bdd58f685fsi8333277plb.85.2023.12.12.15.10.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 15:10:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id E12DC8046BFA; Tue, 12 Dec 2023 15:10:36 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377965AbjLLXK2 (ORCPT + 99 others); Tue, 12 Dec 2023 18:10:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377895AbjLLXK1 (ORCPT ); Tue, 12 Dec 2023 18:10:27 -0500 Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15D2DB2; Tue, 12 Dec 2023 15:10:33 -0800 (PST) Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96.2) (envelope-from ) id 1rDBtB-0008Az-2l; Tue, 12 Dec 2023 23:10:11 +0000 Date: Tue, 12 Dec 2023 23:10:07 +0000 From: Daniel Golle To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Matthias Brugger , AngeloGioacchino Del Regno , Maso Huang , Daniel Golle , linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v2] ASoC: mediatek: mt7986: silence error in case of -EPROBE_DEFER Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 12 Dec 2023 15:10:37 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785119527863263685 X-GMAIL-MSGID: 1785119527863263685 If probe is defered no error should be printed. Use dev_err_probe() to have it muted. Signed-off-by: Daniel Golle Reviewed-by: Maso Huang Reviewed-by: AngeloGioacchino Del Regno --- v2: use dev_err_probe() sound/soc/mediatek/mt7986/mt7986-wm8960.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/mediatek/mt7986/mt7986-wm8960.c b/sound/soc/mediatek/mt7986/mt7986-wm8960.c index c1390b3734101..6982e833421d6 100644 --- a/sound/soc/mediatek/mt7986/mt7986-wm8960.c +++ b/sound/soc/mediatek/mt7986/mt7986-wm8960.c @@ -144,7 +144,7 @@ static int mt7986_wm8960_machine_probe(struct platform_device *pdev) ret = devm_snd_soc_register_card(&pdev->dev, card); if (ret) { - dev_err(&pdev->dev, "%s snd_soc_register_card fail: %d\n", __func__, ret); + dev_err_probe(&pdev->dev, ret, "%s snd_soc_register_card fail\n", __func__); goto err_of_node_put; }