Skip to content

Commit

Permalink
regmap: Fix regcache_sync generic implementation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dimitris Papastamos authored and Mark Brown committed Sep 28, 2011
1 parent 3405add commit a40c282
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/base/regmap/regcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a40c282

Please sign in to comment.