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)
committerDan Willemsen <dwillemsen@nvidia.com>
Wed, 21 Mar 2012 05:31:33 +0000 (22:31 -0700)
commit2432cb38e38c63f82acde14dff76eab6a11882b5
treeb4f7c67c625b041669680c4d5e8941826dd85c6d
parent7e963f13a0726927bf3d5c7d738c45b2d28f2e4b
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>
(cherry picked from commit d9db762708e27c2892db9d8a54e735a8e506e16e)

Change-Id: I1b41ea112ae97812be6c9e2e3ea8c490e0835732
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/87579

Rebase-Id: Rdbc40fe28a638ea6ddb720e486139647992fa8cf
drivers/base/regmap/regcache.c