Skip to content

Commit f8b9c81

Browse files
Dan Carpenterbroonie
authored andcommitted
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: 4cc9bd8 ("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>
1 parent b6b5bba commit f8b9c81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/codecs/tas2783-sdw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1285,7 +1285,7 @@ static s32 tas_sdw_probe(struct sdw_slave *peripheral,
12851285
&tas_regmap,
12861286
&tas2783_mbq_cfg);
12871287
if (IS_ERR(regmap))
1288-
return dev_err_probe(dev, PTR_ERR(tas_dev->regmap),
1288+
return dev_err_probe(dev, PTR_ERR(regmap),
12891289
"Failed devm_regmap_init_sdw.");
12901290

12911291
/* keep in cache until the device is fully initialized */

0 commit comments

Comments
 (0)