aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/sh
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/sh')
-rw-r--r--drivers/sh/clk/core.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/sh/clk/core.c b/drivers/sh/clk/core.c
index 229ad0991f26..dc8d022c07a1 100644
--- a/drivers/sh/clk/core.c
+++ b/drivers/sh/clk/core.c
@@ -673,7 +673,7 @@ static struct dentry *clk_debugfs_root;
673static int clk_debugfs_register_one(struct clk *c) 673static int clk_debugfs_register_one(struct clk *c)
674{ 674{
675 int err; 675 int err;
676 struct dentry *d, *child, *child_tmp; 676 struct dentry *d;
677 struct clk *pa = c->parent; 677 struct clk *pa = c->parent;
678 char s[255]; 678 char s[255];
679 char *p = s; 679 char *p = s;
@@ -702,10 +702,7 @@ static int clk_debugfs_register_one(struct clk *c)
702 return 0; 702 return 0;
703 703
704err_out: 704err_out:
705 d = c->dentry; 705 debugfs_remove_recursive(c->dentry);
706 list_for_each_entry_safe(child, child_tmp, &d->d_subdirs, d_u.d_child)
707 debugfs_remove(child);
708 debugfs_remove(c->dentry);
709 return err; 706 return err;
710} 707}
711 708