From: Charles Keepax Date: Tue, 6 Aug 2013 16:18:35 +0000 (+0100) Subject: mfd: arizona: Move regulator disable to after marking cache only X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e293e847275b2d1a4768ca25f0933a70b2383016;p=linux.git mfd: arizona: Move regulator disable to after marking cache only If we disable DCVDD before we mark the cache as cache only, we might attempt to write to the chip whilst it is powered down and lose a write. Signed-off-by: Charles Keepax Signed-off-by: Lee Jones --- diff --git a/drivers/mfd/arizona-core.c b/drivers/mfd/arizona-core.c index 89a115301a0cb..5ac3aa48473be 100644 --- a/drivers/mfd/arizona-core.c +++ b/drivers/mfd/arizona-core.c @@ -438,9 +438,9 @@ static int arizona_runtime_suspend(struct device *dev) } } - regulator_disable(arizona->dcvdd); regcache_cache_only(arizona->regmap, true); regcache_mark_dirty(arizona->regmap); + regulator_disable(arizona->dcvdd); return 0; }