Commit 290d6e5d authored by Mark Brown's avatar Mark Brown

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: default avatarMark Brown <broonie@kernel.org>
Link: https://patch.msgid.link/20240822-b4-regmap-maple-nolock-v1-3-d5e6dbae3396@kernel.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent fd4ebc07
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment