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)
commit746dca0aebd4d77adccb76c500a60028a900dabb
tree379070d37109e0e9ac2e05785cf13b0273fcdf80
parent00347e4ea8ca4c6ed5e254d7cebad0917175a07e
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