regmap: Initialize `map->debugfs' before regcache
Subsystems (2)
PATCH 1/1 regmap: Initialize `map->debugfs' before regcache
In the rbtree code we are exposing statistics relating to the number of nodes/registers of the rbtree cache for each of the devices. Ensure that `map->debugfs' has been initialized before we attempt to initialize the debugfs entry for the rbtree cache.
Signed-off-by Dimitris Papastamos <[email protected]>
--- drivers/base/regmap/regmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/base/regmap/regmap.c +2 -2
@@ -710,12 +710,12 @@ skip_format_initialization: } } +regmap_debugfs_init (map, config->name); + ret =regcache_init (map, config);if (ret !=0 ) goto err_range; -regmap_debugfs_init (map, config->name); -/* Add a devres resource for dev_get_regmap() */ m =devres_alloc (dev_get_regmap_release,sizeof (*m),GFP_KERNEL );if (!m) {
Signature · 1 line
1.8.1.5
Mark Brown
AppliedQuoted 4 lines · Dimitris Papastamos
In the rbtree code we are exposing statistics relating to the number of nodes/registers of the rbtree cache for each of the devices. Ensure that `map->debugfs' has been initialized before we attempt to initialize the debugfs entry for the rbtree cache.
Applied, thanks.