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 7e9c39951ecb..d6702e57d428 100644
--- a/drivers/sh/clk/core.c
+++ b/drivers/sh/clk/core.c
@@ -670,7 +670,7 @@ static struct dentry *clk_debugfs_root;
670static int clk_debugfs_register_one(struct clk *c) 670static int clk_debugfs_register_one(struct clk *c)
671{ 671{
672 int err; 672 int err;
673 struct dentry *d, *child, *child_tmp; 673 struct dentry *d;
674 struct clk *pa = c->parent; 674 struct clk *pa = c->parent;
675 char s[255]; 675 char s[255];
676 char *p = s; 676 char *p = s;
@@ -699,10 +699,7 @@ static int clk_debugfs_register_one(struct clk *c)
699 return 0; 699 return 0;
700 700
701err_out: 701err_out:
702 d = c->dentry; 702 debugfs_remove_recursive(c->dentry);
703 list_for_each_entry_safe(child, child_tmp, &d->d_subdirs, d_u.d_child)
704 debugfs_remove(child);
705 debugfs_remove(c->dentry);
706 return err; 703 return err;
707} 704}
708 705