mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
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>
This commit is contained in:
parent
fd4ebc07b4
commit
290d6e5d64
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user