mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-31 06:14:39 +01:00
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 <[email protected]> Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
1 parent
12ae3808c1
commit
9b947a13e7
1 file changed
+2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user