diff options
| author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-01-25 16:10:21 -0500 |
|---|---|---|
| committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-01-25 16:17:29 -0500 |
| commit | 5539a102882d5ddd1bb95ea9f6f43130a789cb7f (patch) | |
| tree | 3902611a8ad28f5c1156e57a81b2fccc761b67d0 | |
| parent | 1b76d2ee4012f325ae14e0e71dad1a0835195906 (diff) | |
ASoC: wm8962: Mark register cache as dirty when regulators are disabled
Otherwise we won't resync later.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
| -rw-r--r-- | sound/soc/codecs/wm8962.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c index 296de4e30d26..bda3da887d7e 100644 --- a/sound/soc/codecs/wm8962.c +++ b/sound/soc/codecs/wm8962.c | |||
| @@ -96,7 +96,7 @@ static int wm8962_regulator_event_##n(struct notifier_block *nb, \ | |||
| 96 | struct wm8962_priv *wm8962 = container_of(nb, struct wm8962_priv, \ | 96 | struct wm8962_priv *wm8962 = container_of(nb, struct wm8962_priv, \ |
| 97 | disable_nb[n]); \ | 97 | disable_nb[n]); \ |
| 98 | if (event & REGULATOR_EVENT_DISABLE) { \ | 98 | if (event & REGULATOR_EVENT_DISABLE) { \ |
| 99 | regcache_cache_only(wm8962->regmap, true); \ | 99 | regcache_mark_dirty(wm8962->regmap); \ |
| 100 | } \ | 100 | } \ |
| 101 | return 0; \ | 101 | return 0; \ |
| 102 | } | 102 | } |
