[PATCH v3 01/14] ASoC: tegra: Use dev_err_probe() in tegra186_asrc probe

Sheetal posted 14 patches 1 week, 1 day ago
There is a newer version of this series
[PATCH v3 01/14] ASoC: tegra: Use dev_err_probe() in tegra186_asrc probe
Posted by Sheetal 1 week, 1 day ago
Log errors in the Tegra186 ASRC probe path using dev_err_probe().

Signed-off-by: Sheetal <sheetal@nvidia.com>
---
 sound/soc/tegra/tegra186_asrc.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/sound/soc/tegra/tegra186_asrc.c b/sound/soc/tegra/tegra186_asrc.c
index d2a5ec7c54cc..98e911e2ed74 100644
--- a/sound/soc/tegra/tegra186_asrc.c
+++ b/sound/soc/tegra/tegra186_asrc.c
@@ -1016,10 +1016,9 @@ static int tegra186_asrc_platform_probe(struct platform_device *pdev)
 	err = devm_snd_soc_register_component(dev, &tegra186_asrc_cmpnt,
 					      tegra186_asrc_dais,
 					      ARRAY_SIZE(tegra186_asrc_dais));
-	if (err) {
-		dev_err(dev, "can't register ASRC component, err: %d\n", err);
-		return err;
-	}
+	if (err)
+		return dev_err_probe(dev, err,
+				     "can't register ASRC component\n");
 
 	pm_runtime_enable(dev);
 
-- 
2.17.1
Re: [PATCH v3 01/14] ASoC: tegra: Use dev_err_probe() in tegra186_asrc probe
Posted by Mark Brown 1 week, 1 day ago
On Wed, Mar 25, 2026 at 10:14:24AM +0000, Sheetal wrote:
> Log errors in the Tegra186 ASRC probe path using dev_err_probe().
> 

There's still dev_err() logging on regmap init failures here (I'll take
this patch, please send a separate patch).