Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 280553
b: refs/heads/master
c: cce585c
h: refs/heads/master
i:
  280551: fc10a5b
v: v3
  • Loading branch information
Mark Brown committed Nov 22, 2011
1 parent 488dc77 commit 9b79bb9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bad2ab4b6d938482c2b0bdcf80a8d14dbef4e8f5
refs/heads/master: cce585ce1ebd5307c9709e24758d5eb8a1e087a7
11 changes: 10 additions & 1 deletion trunk/drivers/base/regmap/regcache-rbtree.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,15 @@ static const struct file_operations rbtree_fops = {
.llseek = seq_lseek,
.release = single_release,
};

static void rbtree_debugfs_init(struct regmap *map)
{
debugfs_create_file("rbtree", 0400, map->debugfs, map, &rbtree_fops);
}
#else
static void rbtree_debugfs_init(struct regmap *map)
{
}
#endif

static int regcache_rbtree_init(struct regmap *map)
Expand All @@ -194,7 +203,7 @@ static int regcache_rbtree_init(struct regmap *map)
goto err;
}

debugfs_create_file("rbtree", 0400, map->debugfs, map, &rbtree_fops);
rbtree_debugfs_init(map);

return 0;

Expand Down

0 comments on commit 9b79bb9

Please sign in to comment.