diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2014-08-24 15:32:27 +0200 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-08-26 10:11:56 +0200 |
commit | 5e0cbe78762b5f02986bf9e59a188dad2f6e0be1 (patch) | |
tree | d6ee5f6447e1705588bdae6c0798b27787a2293b /drivers/base/regmap/internal.h | |
parent | Linux 3.17-rc1 (diff) | |
download | linux-5e0cbe78762b5f02986bf9e59a188dad2f6e0be1.tar.xz linux-5e0cbe78762b5f02986bf9e59a188dad2f6e0be1.zip |
regmap: Fix regcache debugfs initialization
Commit 6cfec04bcc05 ("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: 6cfec04bcc05 (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
Diffstat (limited to 'drivers/base/regmap/internal.h')
-rw-r--r-- | drivers/base/regmap/internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/base/regmap/internal.h b/drivers/base/regmap/internal.h index 7d1326985bee..bfc90b8547f2 100644 --- a/drivers/base/regmap/internal.h +++ b/drivers/base/regmap/internal.h @@ -146,6 +146,9 @@ struct regcache_ops { enum regcache_type type; int (*init)(struct regmap *map); int (*exit)(struct regmap *map); +#ifdef CONFIG_DEBUG_FS + void (*debugfs_init)(struct regmap *map); +#endif int (*read)(struct regmap *map, unsigned int reg, unsigned int *value); int (*write)(struct regmap *map, unsigned int reg, unsigned int value); int (*sync)(struct regmap *map, unsigned int min, unsigned int max); |