ASoC: max98388: fix error code in probe()
authorDan Carpenter <dan.carpenter@linaro.org>
Mon, 19 Jun 2023 09:46:48 +0000 (12:46 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 19 Jun 2023 11:59:34 +0000 (12:59 +0100)
commit02474880e8fdd8533f21da4264a7ebfce8196be7
tree7aefa0b12e4f6328850fcfb13d03942647a2c0ed
parent1650e8a8818d516219b2c0cbc203f53cc6cd77a0
ASoC: max98388: fix error code in probe()

This seems like a copy and paste bug.  Return the correct variable.
It should be "ret" instead of PTR_ERR(max98388->regmap).

Fixes: 6a8e1d46f062 ("ASoC: max98388: add amplifier driver")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/d44c8388-b12b-4045-95de-0d4bc7b428ac@moroto.mountain
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/max98388.c