aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/regmap
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/base/regmap')
-rw-r--r--drivers/base/regmap/regmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c
index 10ecbba32e10..a8620900abc4 100644
--- a/drivers/base/regmap/regmap.c
+++ b/drivers/base/regmap/regmap.c
@@ -241,12 +241,12 @@ struct regmap *regmap_init(struct device *dev,
241 goto err_map; 241 goto err_map;
242 } 242 }
243 243
244 regmap_debugfs_init(map);
245
244 ret = regcache_init(map, config); 246 ret = regcache_init(map, config);
245 if (ret < 0) 247 if (ret < 0)
246 goto err_free_workbuf; 248 goto err_free_workbuf;
247 249
248 regmap_debugfs_init(map);
249
250 return map; 250 return map;
251 251
252err_free_workbuf: 252err_free_workbuf: