Merge remote-tracking branch 'regmap/fix/cache' into regmap-linus

This commit is contained in:
Mark Brown 2014-11-21 11:32:33 +00:00
commit 28176ab6d0

View File

@ -44,7 +44,7 @@ static int regcache_hw_init(struct regmap *map)
map->cache_bypass = 1;
tmp_buf = kmalloc(map->cache_size_raw, GFP_KERNEL);
if (!tmp_buf)
return -EINVAL;
return -ENOMEM;
ret = regmap_raw_read(map, 0, tmp_buf,
map->num_reg_defaults_raw);
map->cache_bypass = cache_bypass;