regmap: Skip patch application when the cache is not dirty on sync
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 25 Jan 2012 21:06:33 +0000 (21:06 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 25 Jan 2012 21:21:56 +0000 (21:21 +0000)
commitd9db762708e27c2892db9d8a54e735a8e506e16e
tree6c3dfa0bdb888df5f237f7b9de78c2b8a035ad91
parent22f0d90a34827812413bb3fbeda6a2a79bb58423
regmap: Skip patch application when the cache is not dirty on sync

On the basis that if we don't actually need to resync the cache then the
patches are probably also already applied.

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