summaryrefslogtreecommitdiff
path: root/drivers/base/regmap
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2023-03-24 19:22:26 +0300
committerMark Brown <broonie@kernel.org>2023-03-27 03:42:31 +0300
commit2d38e8615a21e264042870f811247d5c52c27f4e (patch)
treecf4a6776fdf2ce562507c96c027ce236f6b85369 /drivers/base/regmap
parent2c89db8f8d1e544fd817d4c0dc508a00b78a8f7f (diff)
downloadlinux-2d38e8615a21e264042870f811247d5c52c27f4e.tar.xz
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
Diffstat (limited to 'drivers/base/regmap')
-rw-r--r--drivers/base/regmap/regcache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/regmap/regcache.c b/drivers/base/regmap/regcache.c
index c53eabd4855d..7a337e8d08a9 100644
--- a/drivers/base/regmap/regcache.c
+++ b/drivers/base/regmap/regcache.c
@@ -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;
}