summaryrefslogtreecommitdiff
path: root/drivers/base/regmap
diff options
context:
space:
mode:
authorDavid Lechner <david@lechnology.com>2018-02-20 00:43:02 +0300
committerMark Brown <broonie@kernel.org>2018-02-20 15:07:59 +0300
commit9b947a13e7f6017f18470f665992dbae267852b3 (patch)
tree7ac59ac1f3d3fbc74a7443fdf9e20fce48c08acb /drivers/base/regmap
parent12ae3808c160b7be0de3c633ac4cbe8c5f2937bf (diff)
downloadlinux-9b947a13e7f6017f18470f665992dbae267852b3.tar.xz
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')
-rw-r--r--drivers/base/regmap/regmap.c2
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;