From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) (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 BA7D540D595 for ; Thu, 16 Jul 2026 10:39:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784198396; cv=none; b=AG7pSoziGpVylWi4HPqCdjRXL55ZwVaeg+22JmAHZ9iyULOhcd4mcsNqO3vDLO5F643ZmKcy7+/KGFaYUmLEslBYOiVHHeHT4LgKZaYtTmlYttj3Kn1KkiBqY5+/3R91d1iMteWX4qMb6GiU/E/aaL6tRmN8rOF4v1rWFxQofLQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784198396; c=relaxed/simple; bh=gUh7CaF4wGbT30PXRFwTqOc2i4ZkepGfjuYmMyd9c/4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TJTyxORSQmIXw2LFP4Syib8hiRbyo4w4ZI2us5uwFf7yjnC8nd4Q/Gh7Drd+ckxlQDkXmmSnEu8Fa6oI+GToNyBCaTFUKy8vw+T+/0S90niXJz5S8EiRo8hkG5tum8PyME/tjkUlYMr23ShVikDX4fnd8PV8MOlI1t27X2tsSJs= 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=A81kHaDa; arc=none smtp.client-ip=209.85.210.176 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="A81kHaDa" Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-848595b338cso7534719b3a.0 for ; Thu, 16 Jul 2026 03:39:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784198394; x=1784803194; 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=Kkf59nhXbzFYZJk8w0acxrA6dPOctZpgPDQFFqZdJic=; b=A81kHaDaoHy1DGugVFbvgrIEhx8NDgBAf1pHj5c6KyJ7XT6x3YmAanOFX1XLVxI7nW hfqBtPnyLb2ozO1Pc6s7zWwDgw7EZy6BP4/SGwZwxdTFAsLn16XuLB6mimXxd8ZEuHwE HNXr4CzFY4PztnhZhgpw6gKvpQIs02Ym83fvuB8t9ZE6nnPFyP7ZUn7lBzReEGjNxL1w cKHrr5dR9kkv5y++or93wl+MkXGFM5fYpqFskEOhXTfRpNq//XX7G1DX8oxn2MAvSQoO 2HoHKIUk0yPHRtUt9KM5r6rcTtS+H2zLZ9vzqZfx2kzzVjhS+xaWMvgPJqXla56tdbQE qUBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784198394; x=1784803194; 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=Kkf59nhXbzFYZJk8w0acxrA6dPOctZpgPDQFFqZdJic=; b=mzZiDA94nBQg6KBMqSQyHCJ9N16vI2O3JaHvbEAtVr01YHR1HNVKsGuoVsyNbSnQN2 SvGY3qomswJPITWiOkiINDfTetZRr6NCRTCjzbEmmANdiM9bQIUdsnSwA996fL+jhKd+ ywIkyfJA/T3C8rQh2wQy6JPg+EIYeWwdWagMUtpT9lU9lWq2nThVS7WV8K2gsjfvJBm6 T8YSYTsYa91TeY/w9WlPMcQ5NE94LDQ0XPUweKvcssdqnn/YLA9i6xvTKDcBcsn5HMeW 3REOcam8yYOhNBsEFG2vCD6RaK6eUvIVpkwNxRm947foKlvPLJ3hqEbuetHWTea8h/L2 arlg== X-Gm-Message-State: AOJu0Yyci/XlsJGukLWT7reO2JKGbCe8cTd1zIFV3tmgTJmam7KfuKnn sMB+eqTPdpxUvQAfYlh4S6FUK3eCsCkB9Wz7MSEwsdFoaO7pK/SBpJ+x X-Gm-Gg: AfdE7cllQTHalqcyBbJJIVlwEdtMOo9bKF/WpEilTtltAEhj8KzEwNGQsUQD4aBV8Sn I4KfuH/rUvdliKHUY89DmOuHEAn+UiWL+E7XLtEar88ZN2gfo1JgdAQepL4IocoyWggqloSeQoZ m3WXZY4kbmgLC8E35fLHZyhKf/kR0vgS22/AG/uP0/6dbtXAo5jlGkAz4pS0f1DHsC9xUvyjnXH fmFGQF7XD1vub/Nzn2+64ZRAPI7FdFmewNBCGc3rCmWZBcHMeNOXUGNKy+VU7SPUAtT8sXWLzBM lTKDVA9y46a0d9Djo/CFimcoBExL4WPwLVfrmdb+XRsrLIsQz3g33bbPiqJvhTkFt9lExDlFYeS XFl7qmQVauJ6bnbC22jWz6zwZKImgcxbbqaLPNZd7MPhVHoJAFlOVg3bJivY0P6pVRi+z72tDe8 FZIr/uFT+DvYdTTO20nfCLKexpGHJ8XGOCjtnK X-Received: by 2002:a05:6a00:a216:b0:848:7475:29bd with SMTP id d2e1a72fcca58-84a554fa13fmr9537852b3a.7.1784198393895; Thu, 16 Jul 2026 03:39:53 -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.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2026 03:39:53 -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 07/10] ASoC: ti: omap-hdmi: Use dev_err_probe() for error handling Date: Thu, 16 Jul 2026 17:39:08 +0700 Message-ID: <20260716103911.77652-8-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 --- Changes in v3: - Add the remaining missing parentheses to `snd_soc_register_card()` (Cezary). sound/soc/ti/omap-hdmi.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sound/soc/ti/omap-hdmi.c b/sound/soc/ti/omap-hdmi.c index e60f5b483fc5..1e3a9711e70c 100644 --- a/sound/soc/ti/omap-hdmi.c +++ b/sound/soc/ti/omap-hdmi.c @@ -375,10 +375,8 @@ static int omap_hdmi_audio_probe(struct platform_device *pdev) card->dev = dev; ret = devm_snd_soc_register_card(dev, card); - if (ret) { - dev_err(dev, "snd_soc_register_card failed (%d)\n", ret); - return ret; - } + if (ret) + return dev_err_probe(dev, ret, "snd_soc_register_card() failed\n"); ad->card = card; snd_soc_card_set_drvdata(card, ad); -- 2.43.0