Skip to content

Commit

Permalink
regmap: Do debugfs init before cache init
Browse files Browse the repository at this point in the history
This allows caches to add custom debugfs files.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Mark Brown committed Nov 21, 2011
1 parent d91e8db commit 052d2cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/base/regmap/regmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 052d2cd

Please sign in to comment.