|
@@ -25,6 +25,7 @@ struct regmap_debugfs_node {
|
|
struct list_head link;
|
|
struct list_head link;
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+static unsigned int dummy_index;
|
|
static struct dentry *regmap_debugfs_root;
|
|
static struct dentry *regmap_debugfs_root;
|
|
static LIST_HEAD(regmap_debugfs_early_list);
|
|
static LIST_HEAD(regmap_debugfs_early_list);
|
|
static DEFINE_MUTEX(regmap_debugfs_early_lock);
|
|
static DEFINE_MUTEX(regmap_debugfs_early_lock);
|
|
@@ -573,6 +574,11 @@ void regmap_debugfs_init(struct regmap *map, const char *name)
|
|
name = devname;
|
|
name = devname;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (!strcmp(name, "dummy")) {
|
|
|
|
+ name = kasprintf(GFP_KERNEL, "dummy%d", dummy_index);
|
|
|
|
+ dummy_index++;
|
|
|
|
+ }
|
|
|
|
+
|
|
map->debugfs = debugfs_create_dir(name, regmap_debugfs_root);
|
|
map->debugfs = debugfs_create_dir(name, regmap_debugfs_root);
|
|
if (!map->debugfs) {
|
|
if (!map->debugfs) {
|
|
dev_warn(map->dev, "Failed to create debugfs directory\n");
|
|
dev_warn(map->dev, "Failed to create debugfs directory\n");
|