Skip to content

Commit e02a4cc

Browse files
committed
regmap: Remove dynamic allocation warnings for rbtree and maple
Thanks to Dan and Guenter's very prompt updates of the rbtree and maple caches to support GPF_ATOMIC allocations and since the update shook out a bunch of users at least some of whom have been suitably careful about ensuring that the cache is prepoulated so there are no dynamic allocations after init let's revert the warnings. Signed-off-by: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 0c8b0bf commit e02a4cc

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

drivers/base/regmap/regmap.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -723,15 +723,6 @@ struct regmap *__regmap_init(struct device *dev,
723723
} else {
724724
if ((bus && bus->fast_io) ||
725725
config->fast_io) {
726-
/*
727-
* fast_io is incompatible with REGCACHE_RBTREE and REGCACHE_MAPLE
728-
* since both need to dynamically allocate memory.
729-
*/
730-
if (config->cache_type == REGCACHE_RBTREE ||
731-
config->cache_type == REGCACHE_MAPLE) {
732-
ret = -EINVAL;
733-
goto err_name;
734-
}
735726
if (config->use_raw_spinlock) {
736727
raw_spin_lock_init(&map->raw_spinlock);
737728
map->lock = regmap_lock_raw_spinlock;

0 commit comments

Comments
 (0)