diff options
author | David Lechner <david@lechnology.com> | 2018-02-19 15:43:02 -0600 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-02-20 12:07:59 +0000 |
commit | 9b947a13e7f6017f18470f665992dbae267852b3 (patch) | |
tree | 7ac59ac1f3d3fbc74a7443fdf9e20fce48c08acb /drivers/base/regmap/regmap.c | |
parent | 12ae3808c160b7be0de3c633ac4cbe8c5f2937bf (diff) |
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/regmap/regmap.c')
-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; |