regmap: debugfs: Fix a boot time crash with early regmap init
authorTero Kristo <t-kristo@ti.com>
Thu, 24 Oct 2013 12:03:41 +0000 (15:03 +0300)
committerMark Brown <broonie@linaro.org>
Thu, 24 Oct 2013 12:50:58 +0000 (13:50 +0100)
If called early enough, regmap_debugfs_init causes a crash, if the
fs subsystem does not have its mount cache created yet. Even if this
would work, the root node for the regmap debugfs is still missing,
thus postpone the regmap_debugfs_init in this case until the root
node is created. A special regmap_debugfs_early list is created for
this purpose which is parsed later in the boot.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>

No differences found