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-samsung/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-samsung/clock.c')
-rw-r--r-- | arch/arm/plat-samsung/clock.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/arm/plat-samsung/clock.c b/arch/arm/plat-samsung/clock.c index 772892826ffc..0c9f95d98561 100644 --- a/arch/arm/plat-samsung/clock.c +++ b/arch/arm/plat-samsung/clock.c | |||
@@ -458,7 +458,7 @@ static struct dentry *clk_debugfs_root; | |||
458 | static int clk_debugfs_register_one(struct clk *c) | 458 | static int clk_debugfs_register_one(struct clk *c) |
459 | { | 459 | { |
460 | int err; | 460 | int err; |
461 | struct dentry *d, *child, *child_tmp; | 461 | struct dentry *d; |
462 | struct clk *pa = c->parent; | 462 | struct clk *pa = c->parent; |
463 | char s[255]; | 463 | char s[255]; |
464 | char *p = s; | 464 | char *p = s; |
@@ -488,10 +488,7 @@ static int clk_debugfs_register_one(struct clk *c) | |||
488 | return 0; | 488 | return 0; |
489 | 489 | ||
490 | err_out: | 490 | err_out: |
491 | d = c->dent; | 491 | debugfs_remove_recursive(c->dent); |
492 | list_for_each_entry_safe(child, child_tmp, &d->d_subdirs, d_u.d_child) | ||
493 | debugfs_remove(child); | ||
494 | debugfs_remove(c->dent); | ||
495 | return err; | 492 | return err; |
496 | } | 493 | } |
497 | 494 | ||