regmap: Reset cache status when reinitialsing the cache
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 20 Jan 2012 13:39:37 +0000 (13:39 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 20 Jan 2012 13:49:30 +0000 (13:49 +0000)
commit421e8d2de3bd8b089dc6322d8589b7eb38437a23
treeb98bf2c5f9d26748129616268638b55b4106d167
parentdcd6c92267155e70a94b3927bce681ce74b80d1f
regmap: Reset cache status when reinitialsing the cache

When we reinitialise the cache make sure that we reset the cache access
flags, ensuring that the reinitialised cache is in the default state
which is what callers would and do expect given the function name.

This is particularly likely to cause issues in systems where there was no
cache previously as those systems have cache bypass enabled, as for the
wm8994 driver where this was noticed.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/base/regmap/regmap.c