Skip to content

Commit

Permalink
regmap: use debugfs even when no device
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
dlech authored and broonie committed Feb 20, 2018
1 parent 12ae380 commit 9b947a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/base/regmap/regmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1116,6 +1116,8 @@ struct regmap *__regmap_init(struct device *dev,
ret = regmap_attach_dev(dev, map, config);
if (ret != 0)
goto err_regcache;
} else {
regmap_debugfs_init(map, config->name);
}

return map;
Expand Down

0 comments on commit 9b947a1

Please sign in to comment.