diff options
author | Mark Brown <broonie@kernel.org> | 2024-08-22 21:13:37 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-08-23 12:03:12 +0200 |
commit | 290d6e5d6498703accffc66849b7fb2d4d7503ff (patch) | |
tree | e0dbf7e1e61a81ae84f4bfe32d831229b2bc0961 /drivers/base | |
parent | regmap: Hold the regmap lock when allocating and freeing the cache (diff) | |
download | linux-290d6e5d6498703accffc66849b7fb2d4d7503ff.tar.xz linux-290d6e5d6498703accffc66849b7fb2d4d7503ff.zip |
regmap: Use locking during kunit tests
There is no reason to bypass the locking when running the kunit tests,
leave it enabled as standard.
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://patch.msgid.link/20240822-b4-regmap-maple-nolock-v1-3-d5e6dbae3396@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/regmap/regmap-kunit.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/base/regmap/regmap-kunit.c b/drivers/base/regmap/regmap-kunit.c index d790c7df5cac..b80b447c87a2 100644 --- a/drivers/base/regmap/regmap-kunit.c +++ b/drivers/base/regmap/regmap-kunit.c @@ -151,8 +151,6 @@ static struct regmap *gen_regmap(struct kunit *test, struct reg_default *defaults; config->cache_type = param->cache; - config->disable_locking = config->cache_type == REGCACHE_RBTREE || - config->cache_type == REGCACHE_MAPLE; if (config->max_register == 0) { config->max_register = param->from_reg; |