From: David Lechner Date: Mon, 19 Feb 2018 21:43:02 +0000 (-0600) Subject: regmap: use debugfs even when no device X-Git-Tag: v4.17-rc1~158^2^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9b947a13e7f6;p=thirdparty%2Flinux.git 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 Signed-off-by: Mark Brown --- diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c index ee302ccdfbc8d..f5fa1ddc65e9b 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;