[PATCH 1/2] regmap: Do debugfs init before cache init

From: Mark Brown
Date: Mon Nov 21 2011 - 14:46:38 EST


This allows caches to add custom debugfs files.

Signed-off-by: Mark Brown <broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
---
drivers/base/regmap/regmap.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c
index 10ecbba3..a862090 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:
--
1.7.7.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/