From: Aryan Sinha <sinha.aryan03@gmail.com>
To: bo liu <bo.liu@senarytech.com>,
"qianghua . wang" <qianghua.wang@senarytech.com>
Cc: Mark Brown <broonie@kernel.org>,
Liam Girdwood <lgirdwood@gmail.com>,
linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org,
Aryan Sinha <sinha.aryan03@gmail.com>
Subject: [PATCH] ASoC: sn624x: use dev_err_probe() for the regmap failure
Date: Wed, 4 Nov 2026 20:31:54 +0530 [thread overview]
Message-ID: <20261104150155.33157-1-sinha.aryan03@gmail.com> (raw)
dev_err_probe() prints the symbolic errno and stays quiet on
-EPROBE_DEFER. The sn624x prefix goes too, dev_err_probe() already prints the device name..
Signed-off-by: Aryan Sinha <sinha.aryan03@gmail.com>
---
sound/soc/codecs/sn624x-sdca-sdw.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/sound/soc/codecs/sn624x-sdca-sdw.c b/sound/soc/codecs/sn624x-sdca-sdw.c
index c9e690482..1a83f0a11 100644
--- a/sound/soc/codecs/sn624x-sdca-sdw.c
+++ b/sound/soc/codecs/sn624x-sdca-sdw.c
@@ -1736,11 +1736,9 @@ static int sn624x_sdca_sdw_probe(struct sdw_slave *slave,
regmap = devm_regmap_init_sdw_mbq_cfg(&slave->dev, slave,
&sn624x_sdca_regmap,
&sn624x_sdca_mbq_cfg);
- if (IS_ERR(regmap)) {
- dev_err(&slave->dev, "sn624x: devm_regmap_init_sdw_mbq_cfg failed (%ld)\n",
- PTR_ERR(regmap));
- return PTR_ERR(regmap);
- }
+ if (IS_ERR(regmap))
+ return dev_err_probe(&slave->dev, PTR_ERR(regmap),
+ "devm_regmap_init_sdw_mbq_cfg failed\n");
ret = sn624x_sdca_init(&slave->dev, regmap, slave);
if (ret < 0)
--
2.46.0
next reply other threads:[~2026-11-04 15:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-04 15:01 Aryan Sinha [this message]
2026-11-05 1:45 ` 回复: " qianghua.wang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261104150155.33157-1-sinha.aryan03@gmail.com \
--to=sinha.aryan03@gmail.com \
--cc=bo.liu@senarytech.com \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=qianghua.wang@senarytech.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®