ASoC: wm8962: Turn on regcache_cache_only before disabling regulator
commit 50bfcf2df2 upstream.
It's safer to turn on regcache_cache_only before disabling regulator since
the driver will turn off the regcache_cache_only after enabling regulator.
If we remain cache_only false, some command like 'amixer cset' would get
failure if being run before wm8962_resume().
Signed-off-by: Nicolin Chen <b42378@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8559f25c6b
commit
59d5384899
1 changed files with 2 additions and 0 deletions
|
|
@ -3686,6 +3686,8 @@ static int wm8962_i2c_probe(struct i2c_client *i2c,
|
|||
if (ret < 0)
|
||||
goto err_enable;
|
||||
|
||||
regcache_cache_only(wm8962->regmap, true);
|
||||
|
||||
/* The drivers should power up as needed */
|
||||
regulator_bulk_disable(ARRAY_SIZE(wm8962->supplies), wm8962->supplies);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue