regmap: Do debugfs init before cache init
This allows caches to add custom debugfs files.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c
index 10ecbba..a862090 100644
--- a/drivers/base/regmap/regmap.c
+++ b/drivers/base/regmap/regmap.c
@@ -241,12 +241,12 @@
goto err_map;
}
+ regmap_debugfs_init(map);
+
ret = regcache_init(map, config);
if (ret < 0)
goto err_free_workbuf;
- regmap_debugfs_init(map);
-
return map;
err_free_workbuf: