Commit 9b947a13 authored by David Lechner's avatar David Lechner Committed by Mark Brown

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: default avatarDavid Lechner <david@lechnology.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 12ae3808
...@@ -1116,6 +1116,8 @@ struct regmap *__regmap_init(struct device *dev, ...@@ -1116,6 +1116,8 @@ struct regmap *__regmap_init(struct device *dev,
ret = regmap_attach_dev(dev, map, config); ret = regmap_attach_dev(dev, map, config);
if (ret != 0) if (ret != 0)
goto err_regcache; goto err_regcache;
} else {
regmap_debugfs_init(map, config->name);
} }
return map; return map;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment