[PATCH] ASoC: samsung: i2s: Use dev_err_probe() for iis clock error

From: phucduc . bui

Date: Wed Jul 01 2026 - 04:46:16 EST


From: bui duc phuc <phucduc.bui@xxxxxxxxx>

Switch the iis clock error path to dev_err_probe(). This folds the
dev_err() and return into a single statement and, when devm_clk_get()
returns -EPROBE_DEFER, avoids logging a spurious error on every probe
retry while still recording the reason in the deferred-probe debugfs.

No functional change other than the demoted log level on deferred
probe; the returned error code is unchanged.

Signed-off-by: bui duc phuc <phucduc.bui@xxxxxxxxx>
---
sound/soc/samsung/i2s.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/sound/soc/samsung/i2s.c b/sound/soc/samsung/i2s.c
index f80f697a5d55..68fff67b9660 100644
--- a/sound/soc/samsung/i2s.c
+++ b/sound/soc/samsung/i2s.c
@@ -1448,10 +1448,10 @@ static int samsung_i2s_probe(struct platform_device *pdev)
regs_base = res->start;

priv->clk = devm_clk_get(&pdev->dev, "iis");
- if (IS_ERR(priv->clk)) {
- dev_err(&pdev->dev, "Failed to get iis clock\n");
- return PTR_ERR(priv->clk);
- }
+ if (IS_ERR(priv->clk))
+ return dev_err_probe(&pdev->dev, PTR_ERR(priv->clk),
+ "Failed to get iis clock\n");
+

ret = clk_prepare_enable(priv->clk);
if (ret != 0) {
--
2.43.0