]> git.baikalelectronics.ru Git - kernel.git/commit
regmap: Fix regcache debugfs initialization
authorLars-Peter Clausen <lars@metafoo.de>
Sun, 24 Aug 2014 13:32:27 +0000 (15:32 +0200)
committerMark Brown <broonie@linaro.org>
Tue, 26 Aug 2014 08:11:56 +0000 (09:11 +0100)
commit4dada06a2228b4eb95a32464be9ae0dacee52ca5
treed6ee5f6447e1705588bdae6c0798b27787a2293b
parentca09702717581356bb91e5bbfbb244eda384a004
regmap: Fix regcache debugfs initialization

Commit b61d5036bfd3 ("regmap: Separate regmap dev initialization") moved the
regmap debugfs initialization after regcache initialization. This means
that the regmap debugfs directory is not created yet when the cache
initialization runs and so any debugfs files registered by the regcache are
created in the debugfs root directory rather than the debugfs directory of
the regmap instance. Fix this by adding a separate callback for the
regcache debugfs initialization which will be called after the parent
debugfs entry has been created.

Fixes: b61d5036bfd3 (regmap: Separate regmap dev initialization)
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
Cc: stable@vger.kernel.org
drivers/base/regmap/internal.h
drivers/base/regmap/regcache-rbtree.c
drivers/base/regmap/regmap-debugfs.c