summaryrefslogtreecommitdiff
path: root/drivers/base
diff options
context:
space:
mode:
authorDimitris Papastamos <dp@opensource.wolfsonmicro.com>2011-09-28 14:43:41 +0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-09-28 16:56:39 +0400
commita40c282362419b8bccb75cea081992f535841085 (patch)
treee254807a15a9a57328f88193275efac12e5db50f /drivers/base
parent3405addd220a0cf2e3a8ffb9051afe766e5f52e8 (diff)
downloadlinux-a40c282362419b8bccb75cea081992f535841085.tar.xz
regmap: Fix regcache_sync generic implementation
We want to use regmap_write() to actually write anything to the HW. Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/regmap/regcache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/regmap/regcache.c b/drivers/base/regmap/regcache.c
index 6b9efd938dca..5364dde2ecd0 100644
--- a/drivers/base/regmap/regcache.c
+++ b/drivers/base/regmap/regcache.c
@@ -242,7 +242,7 @@ int regcache_sync(struct regmap *map)
if (ret < 0)
goto out;
regcache_cache_bypass(map, true);
- ret = regcache_write(map, i, val);
+ ret = regmap_write(map, i, val);
regcache_cache_bypass(map, false);
if (ret < 0)
goto out;