From: Dimitris Papastamos Date: Wed, 28 Sep 2011 10:43:41 +0000 (+0100) Subject: regmap: Fix regcache_sync generic implementation X-Git-Tag: v3.2-rc1~181^2~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a40c282362419b8bccb75cea081992f535841085;p=thirdparty%2Fkernel%2Flinux.git regmap: Fix regcache_sync generic implementation We want to use regmap_write() to actually write anything to the HW. Signed-off-by: Dimitris Papastamos Signed-off-by: Mark Brown --- diff --git a/drivers/base/regmap/regcache.c b/drivers/base/regmap/regcache.c index 6b9efd938dcac..5364dde2ecd05 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;