From: Mark Brown Date: Mon, 21 Nov 2011 19:05:13 +0000 (+0000) Subject: regmap: Do debugfs init before cache init X-Git-Tag: next-20111122~10^2~1 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=052d2cd123e7e36ce54558ac5af0360de2343b2b;p=karo-tx-linux.git regmap: Do debugfs init before cache init This allows caches to add custom debugfs files. Signed-off-by: Mark Brown --- 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: