diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c index 89a920510e1dd565499eff6d0da47758a0e6872f..7008f744c00d7f84d3adeec09d46943c6c003a10 100644 --- a/drivers/base/regmap/regmap.c +++ b/drivers/base/regmap/regmap.c @@ -710,12 +710,12 @@ struct regmap *regmap_init(struct device *dev, } } + 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) {