From: Mark Brown Date: Wed, 25 Jan 2012 21:10:07 +0000 (+0000) Subject: ASoC: wm8996: Mark register cache as dirty when regulators are disabled X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1b76d2ee4012f325ae14e0e71dad1a0835195906;p=openwrt%2Fstaging%2Fblogic.git ASoC: wm8996: Mark register cache as dirty when regulators are disabled Otherwise we won't resync later. Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/wm8996.c b/sound/soc/codecs/wm8996.c index 13aa2bdaa7d7..61f7daa4d0e6 100644 --- a/sound/soc/codecs/wm8996.c +++ b/sound/soc/codecs/wm8996.c @@ -108,7 +108,7 @@ static int wm8996_regulator_event_##n(struct notifier_block *nb, \ struct wm8996_priv *wm8996 = container_of(nb, struct wm8996_priv, \ disable_nb[n]); \ if (event & REGULATOR_EVENT_DISABLE) { \ - regcache_cache_only(wm8996->regmap, true); \ + regcache_mark_dirty(wm8996->regmap); \ } \ return 0; \ }