diff options
author | David Lechner <david@lechnology.com> | 2018-02-19 22:43:02 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-02-20 13:07:59 +0100 |
commit | 9b947a13e7f6017f18470f665992dbae267852b3 (patch) | |
tree | 7ac59ac1f3d3fbc74a7443fdf9e20fce48c08acb /drivers/base | |
parent | regmap: Allow missing device in regmap_name_read_file() (diff) | |
download | linux-9b947a13e7f6017f18470f665992dbae267852b3.tar.xz linux-9b947a13e7f6017f18470f665992dbae267852b3.zip |
regmap: use debugfs even when no device
This registers regmaps with debugfs even when they do not have an
associated device. For example, this is common for syscon regmaps.
Signed-off-by: David Lechner <david@lechnology.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/regmap/regmap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c index ee302ccdfbc8..f5fa1ddc65e9 100644 --- a/drivers/base/regmap/regmap.c +++ b/drivers/base/regmap/regmap.c @@ -1116,6 +1116,8 @@ skip_format_initialization: ret = regmap_attach_dev(dev, map, config); if (ret != 0) goto err_regcache; + } else { + regmap_debugfs_init(map, config->name); } return map; |