Skip to content

Commit

Permalink
Merge remote-tracking branches 'regmap/topic/doc' and 'regmap/topic/f…
Browse files Browse the repository at this point in the history
…lat' into regmap-next
  • Loading branch information
Mark Brown committed May 13, 2016
3 parents 2a2cd52 + 267c858 + 6e4f287 commit d4ab78d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/base/regmap/regcache-flat.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ static int regcache_flat_init(struct regmap *map)
int i;
unsigned int *cache;

if (!map || map->reg_stride_order < 0)
if (!map || map->reg_stride_order < 0 || !map->max_register)
return -EINVAL;

map->cache = kcalloc(regcache_flat_get_index(map, map->max_register)
Expand Down
2 changes: 1 addition & 1 deletion drivers/base/regmap/regcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ EXPORT_SYMBOL_GPL(regcache_mark_dirty);
* regcache_cache_bypass: Put a register map into cache bypass mode
*
* @map: map to configure
* @cache_bypass: flag if changes should not be written to the hardware
* @cache_bypass: flag if changes should not be written to the cache
*
* When a register map is marked with the cache bypass option, writes
* to the register map API will only update the hardware and not the
Expand Down

0 comments on commit d4ab78d

Please sign in to comment.