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-Tag: v3.3-rc3~6^2^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1b76d2ee4012f325ae14e0e71dad1a0835195906;p=platform%2Fkernel%2Flinux-exynos.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 13aa2bd..61f7daa 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; \ }