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: 4cc9bd8d7b ("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>
This commit is contained in:
committed by
Mark Brown
parent
b6b5bbad57
commit
f8b9c819ea
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user