summaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-21 19:05:13 +0000
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-21 19:48:26 +0000
commit052d2cd123e7e36ce54558ac5af0360de2343b2b (patch)
tree5b400810d15810a0eac0493ec84f15aee13c7fd8 /drivers/base
parentd91e8db2c3bbe8ef0e2f3e1a6ff5b31a8d53ef16 (diff)
downloadblackbird-op-linux-052d2cd123e7e36ce54558ac5af0360de2343b2b.tar.gz
blackbird-op-linux-052d2cd123e7e36ce54558ac5af0360de2343b2b.zip
regmap: Do debugfs init before cache init
This allows caches to add custom debugfs files. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/base')
-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,
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:
OpenPOWER on IntegriCloud