Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4972680rdb; Tue, 12 Dec 2023 15:10:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IFeIb/9IvtJjlQCFKB9I9IuS68kvYvFPg7I2VWYeVHGjYXbP76tPSXu7m56mY0oJ6xZbVcT X-Received: by 2002:a05:6a20:c11d:b0:181:74fe:ba83 with SMTP id bh29-20020a056a20c11d00b0018174feba83mr3258143pzb.40.1702422645220; 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=YLtxZ5Z/RhNA/u/G11oeYRMdDZGWxNGr5hccumZqy6Xdq9+Ghgm1ETznb0NeDJPKfr Ax6W3R1tbofXD5nNGsCnuKPS4DyM+bDjeFsIV0A3UYpOjMbphljjpsIjpCMIm07YuHtO Z66WD8QYnzUwMKWhPBLUgePSAzCpTLd8U9UP8yRR2zdSxIyucestgy6Ua+mpiB1QZIo/ Kc5R7Uz1arNxz2h967pCPg2IHR58XObnTDj4JdDS4OyPcF0reGuTKevSVmXRe8K83x7m 49H6kLF20FR+CCd4cV9EJEf41geCqEIZSopyg6QULL4nNw8oDiZXN5JmqYhnlpPDdNvB enzw== 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 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id co6-20020a17090afe8600b002886503a12csi9572324pjb.69.2023.12.12.15.10.44 (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 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 D90F58046BFB; Tue, 12 Dec 2023 15:10:42 -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-Type: text/plain; charset=us-ascii 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:43 -0800 (PST) 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 --- 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; } -- 2.43.0