Skip to content

Commit

Permalink
regmap: Clarify error for unknown cache types
Browse files Browse the repository at this point in the history
The error message printed when we fail to locate the cache type the map
requested says it can't find a compress type rather than a cache type,
fix that. Since the compressed type is the only one currently compiled
conditionally it's likely to be the missing type but that might not always
be true and is still unclear.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20230324-regcache-unknown-v1-1-80deecbf196b@kernel.org
  • Loading branch information
Mark Brown committed Mar 27, 2023
1 parent 2c89db8 commit 2d38e86
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 @@ -148,7 +148,7 @@ int regcache_init(struct regmap *map, const struct regmap_config *config)
break;

if (i == ARRAY_SIZE(cache_types)) {
dev_err(map->dev, "Could not match compress type: %d\n",
dev_err(map->dev, "Could not match cache type: %d\n",
map->cache_type);
return -EINVAL;
}
Expand Down

0 comments on commit 2d38e86

Please sign in to comment.