diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-16 12:37:57 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-20 20:47:51 -0400 |
commit | 12520c438f48113593130d210eba821a532c893b (patch) | |
tree | 006161e31976b8ec72097d97829e9bbeced68e9b /arch/arm/plat-omap/clock.c | |
parent | f15146380d28b746df3c8b81b392812eb982382a (diff) |
switch assorted clock drivers to debugfs_remove_recursive()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/arm/plat-omap/clock.c')
-rw-r--r-- | arch/arm/plat-omap/clock.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/arm/plat-omap/clock.c b/arch/arm/plat-omap/clock.c index c9122dd6ee8..43bae2c1e34 100644 --- a/arch/arm/plat-omap/clock.c +++ b/arch/arm/plat-omap/clock.c | |||
@@ -480,7 +480,7 @@ static struct dentry *clk_debugfs_root; | |||
480 | static int clk_debugfs_register_one(struct clk *c) | 480 | static int clk_debugfs_register_one(struct clk *c) |
481 | { | 481 | { |
482 | int err; | 482 | int err; |
483 | struct dentry *d, *child, *child_tmp; | 483 | struct dentry *d; |
484 | struct clk *pa = c->parent; | 484 | struct clk *pa = c->parent; |
485 | char s[255]; | 485 | char s[255]; |
486 | char *p = s; | 486 | char *p = s; |
@@ -510,9 +510,7 @@ static int clk_debugfs_register_one(struct clk *c) | |||
510 | 510 | ||
511 | err_out: | 511 | err_out: |
512 | d = c->dent; | 512 | d = c->dent; |
513 | list_for_each_entry_safe(child, child_tmp, &d->d_subdirs, d_u.d_child) | 513 | debugfs_remove_recursive(c->dent); |
514 | debugfs_remove(child); | ||
515 | debugfs_remove(c->dent); | ||
516 | return err; | 514 | return err; |
517 | } | 515 | } |
518 | 516 | ||