regmap: Fix regcache_sync generic implementation
authorDimitris Papastamos <dp@opensource.wolfsonmicro.com>
Wed, 28 Sep 2011 10:43:41 +0000 (11:43 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 28 Sep 2011 12:56:39 +0000 (13:56 +0100)
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>
drivers/base/regmap/regcache.c

index 6b9efd938dcacc95846101582d2d0d0cf0052d2d..5364dde2ecd05e28c18cb6a13ecae9c558c924ae 100644 (file)
@@ -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;