]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rt5663: Fix error handling of regulator_set_load
authorCheng-Yi Chiang <cychiang@chromium.org>
Fri, 16 Nov 2018 09:28:56 +0000 (17:28 +0800)
committerMark Brown <broonie@kernel.org>
Sat, 17 Nov 2018 03:19:49 +0000 (19:19 -0800)
commitd14c502c901119da3f6083b217f363853799d884
tree379070d37109e0e9ac2e05785cf13b0273fcdf80
parentcff931e67695cf02959598afd22642303b94baac
ASoC: rt5663: Fix error handling of regulator_set_load

The default implementation of regulator_set_load returns
REGULATOR_MODE_NORMAL, which is positive.  [This was a bug which is
being fixed but the change is valid anyway -- bronie]

rt5663_i2c_probe should only do error handling when return value of
regulator_set_load is negative.
In this case, rt5663_i2c_probe should return error.

Also, consolidate err_irq into err_enable.

Fix the missing goto for temporary regmap and rt5663->regmap.

Signed-off-by: Cheng-Yi Chiang <cychiang@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5663.c