summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@linaro.org>2025-09-26 07:03:11 +0300
committerMark Brown <broonie@kernel.org>2025-09-26 12:43:33 +0100
commitf8b9c819ea20d1101656a91ced843d9e47ba0630 (patch)
tree3178acc3919fd294dd59846289dbc506ea4665a4
parentb6b5bbad571f1204622881b30e6ca3e6d7324102 (diff)
ASoc: tas2783A: Fix an error code in probe()
This code returns the wrong variable "tas_dev->regmap" instead of "regmap" so it returns success instead of a negative error code. Return the correct variable. Fixes: 4cc9bd8d7b32 ("ASoc: tas2783A: Add soundwire based codec driver") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Link: https://patch.msgid.link/aNYQf4cyavnku5Nt@stanley.mountain Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/codecs/tas2783-sdw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/tas2783-sdw.c b/sound/soc/codecs/tas2783-sdw.c
index c2a7be51bdc6..1fb4227b711e 100644
--- a/sound/soc/codecs/tas2783-sdw.c
+++ b/sound/soc/codecs/tas2783-sdw.c
@@ -1285,7 +1285,7 @@ static s32 tas_sdw_probe(struct sdw_slave *peripheral,
&tas_regmap,
&tas2783_mbq_cfg);
if (IS_ERR(regmap))
- return dev_err_probe(dev, PTR_ERR(tas_dev->regmap),
+ return dev_err_probe(dev, PTR_ERR(regmap),
"Failed devm_regmap_init_sdw.");
/* keep in cache until the device is fully initialized */