Skip to content

Commit 290d6e5

Browse files
committed
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>
1 parent fd4ebc0 commit 290d6e5

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

drivers/base/regmap/regmap-kunit.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,6 @@ static struct regmap *gen_regmap(struct kunit *test,
151151
struct reg_default *defaults;
152152

153153
config->cache_type = param->cache;
154-
config->disable_locking = config->cache_type == REGCACHE_RBTREE ||
155-
config->cache_type == REGCACHE_MAPLE;
156154

157155
if (config->max_register == 0) {
158156
config->max_register = param->from_reg;

0 commit comments

Comments
 (0)