Skip to content

Commit 2d38e86

Browse files
committed
regmap: Clarify error for unknown cache types
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
1 parent 2c89db8 commit 2d38e86

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/base/regmap/regcache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ int regcache_init(struct regmap *map, const struct regmap_config *config)
148148
break;
149149

150150
if (i == ARRAY_SIZE(cache_types)) {
151-
dev_err(map->dev, "Could not match compress type: %d\n",
151+
dev_err(map->dev, "Could not match cache type: %d\n",
152152
map->cache_type);
153153
return -EINVAL;
154154
}

0 commit comments

Comments
 (0)