mfd: arizona: Sync regcache after reset
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Tue, 20 Nov 2012 05:49:10 +0000 (14:49 +0900)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 20 Nov 2012 11:46:45 +0000 (12:46 +0100)
commit46b9d13aaec19dfbd5882a999e8ed85fc97a751e
tree74610131991640b38f23aa38676ff241bd6deed5
parent3ebef34d5cf658752d000001d2a6a5defe8cf3a9
mfd: arizona: Sync regcache after reset

In the absence of a physical reset line the chip is reset by writing the
first register, which is done after the register patch has been applied.
This patch synchronises the register cache after the reset to preserve
any register changes that had been applied.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/arizona-core.c