[PATCH v3 12/14] ASoC: tegra: Use dev_err_probe() in tegra210_sfc probe

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

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

diff --git a/sound/soc/tegra/tegra210_sfc.c b/sound/soc/tegra/tegra210_sfc.c
index b298bf0421b1..0f342fae058f 100644
--- a/sound/soc/tegra/tegra210_sfc.c
+++ b/sound/soc/tegra/tegra210_sfc.c
@@ -3608,10 +3608,9 @@ static int tegra210_sfc_platform_probe(struct platform_device *pdev)
 	err = devm_snd_soc_register_component(dev, &tegra210_sfc_cmpnt,
 					      tegra210_sfc_dais,
 					      ARRAY_SIZE(tegra210_sfc_dais));
-	if (err) {
-		dev_err(dev, "can't register SFC component, err: %d\n", err);
-		return err;
-	}
+	if (err)
+		return dev_err_probe(dev, err,
+				     "can't register SFC component\n");
 
 	pm_runtime_enable(&pdev->dev);
 
-- 
2.17.1
Re: [PATCH v3 12/14] ASoC: tegra: Use dev_err_probe() in tegra210_sfc probe
Posted by Mark Brown 1 week, 1 day ago
On Wed, Mar 25, 2026 at 10:14:35AM +0000, Sheetal wrote:
> Log errors in the Tegra210 SFC probe path using dev_err_probe().

Another one with a regmap error log not converted.