From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BAF8A40EBA0 for ; Thu, 16 Jul 2026 10:40:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784198402; cv=none; b=F1c8ohTTCh/KzUVMTbnxg5dVMg9hJioL3WURlvs+VUfq6U3FbH14tZD3149o/3gdQxRGpvcohIzaqPwCsWK9uSjUiuU9BCb/adWASeMdvthFD2KcGL0JaABm9sT35zJ44I3vjuwV1GNfEzK+abpycm7XjwE2cbDOswwxRuXj5JY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784198402; c=relaxed/simple; bh=evBDQ8LUTdIbeMm3xfd3E5UnVCKuP9AXVeeKznBrDQI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=JLoEG1KxOB/On5RToyxdRW58cbw3iZ8t5VIS+zJTURhuSrX+RDKCFNMkBd86km+rEKBmG3Z+uuIlaDdRgB9jVllnkIGHSoW9DnUc0ubvXk08mq+w2wc+IZRxjGMIuI6zy3veSh2hJBaO+lbX3rytNh6hU7Xysd3D0kC2/nz9zBY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=iAmozNN2; arc=none smtp.client-ip=209.85.210.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="iAmozNN2" Received: by mail-pf1-f173.google.com with SMTP id d2e1a72fcca58-84536ecfc5bso3122935b3a.2 for ; Thu, 16 Jul 2026 03:40:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784198401; x=1784803201; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=6457K6STfYP0yfng2102Li6Fjdx/uvYow/tpgSviBkc=; b=iAmozNN2p2+7+UwbFfByQOZ9TfAeySKrSWqtACGh2bdJC+ExlGJYq1ZRGHYJxm7emf 50bZ/8JEjUmslLmvjhkmYy9ONP0vIkBf2OwKttiZO5UcDa7ncAZWM5xs4UyEcAEJNoqs E0leGx/4QIbQvAkw+EUIKIn1IL4U2eIGowhGOYHUVinDh8VzHHzF9iClJlMgmeRN++j3 J3hLzQ7RAOx7DqAcPDx322HXv/Cm0Trg+g5ThbfKbxkVkpLKFD5afOdjXd6vptrq0esb 2u7Pe7uK3D0zhi3fWTLetjC/uweq30NtF5DgO9q27+Th+Cs85OBcDHT8mDV2m4H5LVF9 K8FA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784198401; x=1784803201; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=6457K6STfYP0yfng2102Li6Fjdx/uvYow/tpgSviBkc=; b=kwqoAbB0pVya0OpoM1jp1kgnCM8QRbhjhpOk2//O1Ls83eoqszAKUPnq0SRyea8f7N y1vl06Lv8hTo7VSo4T0RzRnxV0zKcWzAHY9NYhOwOH9Sp4Fnz20I+SlHfHBTfKETShts eGJdnfbDO1wfFKp6pVwOePdk6YK0mr1slCf+rT1q/YJaQQpjTF2dYgYRUxh5w4zei3N6 UCj70hW/OacTaIp6M/Q3XYmPch33Pawo6t0hU9ZcnD+KSCFoY9MGLNl8dQmV6pWfp+Hz n88iDFPsx2FTdIrUzQxupuN17SXQz13x00FZhtN13lyyEninMDttRYGkVhIz+8Yg2O1L aQwg== X-Gm-Message-State: AOJu0Yx+dqQT3Wcy+KS7+VFmWolDjGz69JxpdYWpFYXITtoRZaICVfFX i72Oj7t2xgKJVQfhPUFGJlxPTqQXR5ggI+LvkoIQH80KH+NmOLz623xw X-Gm-Gg: AfdE7clvGg8APJd477hHOP00pdgYBbMvhK6TFMysUICQ1UCKVmIGPaN2Vznh5GoJHHR kKF7XxjA1QzRQ+XIeckr8oDWPFTwk34zStaQLdHIqzwYtIUogG5l3twj1ua5GrL/XZjILuK+mnZ DF2X8/mr/ntmHARg60Mi+Vqo4vtuck1JXa+bdRQgHsA7fTTeqHBIUZKcbd3pyjIxYX6pvvCcZn4 jLeiqtRegxMlp6E/JO+UZz0ciqu1ongM2f1rLaNEFo1U0sRM3FdZMayk6CNLbHJysNpyGiVnkGs kV1RhpRgST1wJCnJw43LKRAPe/0IQlixEQyU27WpdrEUZ2qR+wXK5VaUsOmhVkh4S3h0OTAtBtT HcC6gKHm0OETx6DgcNXCDiiyeu8g+0tKGbsfP7GwP/YosrWIjyYAo7F8PrwEu3NSVZw/OOMuoPq jDVjBemVyYo5dGThF2MwBrrHDjeZLwz6mfqmhn X-Received: by 2002:a05:6a00:1250:b0:848:59fd:2f4d with SMTP id d2e1a72fcca58-84a67390c1cmr5652750b3a.73.1784198401098; Thu, 16 Jul 2026 03:40:01 -0700 (PDT) Received: from phuc-desktop.. ([183.91.15.56]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-84a4f266724sm4757331b3a.15.2026.07.16.03.39.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2026 03:40:00 -0700 (PDT) From: phucduc.bui@gmail.com To: Mark Brown , Sen Wang , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Jarkko Nikula , Christophe JAILLET , linux-omap@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, bui duc phuc Subject: [PATCH v3 09/10] ASoC: ti: omap-twl4030: Use dev_err_probe() for error handling Date: Thu, 16 Jul 2026 17:39:10 +0700 Message-ID: <20260716103911.77652-10-phucduc.bui@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260716103911.77652-1-phucduc.bui@gmail.com> References: <20260716103911.77652-1-phucduc.bui@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: bui duc phuc Replace dev_err() with dev_err_probe() when reporting devm_snd_soc_register_card() failures. This suppresses unnecessary log messages for deferred probe errors. Signed-off-by: bui duc phuc --- sound/soc/ti/omap-twl4030.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sound/soc/ti/omap-twl4030.c b/sound/soc/ti/omap-twl4030.c index 2a80e44035d7..576f4d3615e8 100644 --- a/sound/soc/ti/omap-twl4030.c +++ b/sound/soc/ti/omap-twl4030.c @@ -306,11 +306,9 @@ static int omap_twl4030_probe(struct platform_device *pdev) snd_soc_card_set_drvdata(card, priv); ret = devm_snd_soc_register_card(&pdev->dev, card); - if (ret) { - dev_err(&pdev->dev, "devm_snd_soc_register_card() failed: %d\n", - ret); - return ret; - } + if (ret) + return dev_err_probe(&pdev->dev, ret, + "devm_snd_soc_register_card() failed\n"); return 0; } -- 2.43.0