diff options
Diffstat (limited to 'arch/arm/plat-spear/clock.c')
-rw-r--r-- | arch/arm/plat-spear/clock.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/arm/plat-spear/clock.c b/arch/arm/plat-spear/clock.c index 6fa474cb398..67dd00381ea 100644 --- a/arch/arm/plat-spear/clock.c +++ b/arch/arm/plat-spear/clock.c | |||
@@ -916,7 +916,7 @@ static struct dentry *clk_debugfs_root; | |||
916 | static int clk_debugfs_register_one(struct clk *c) | 916 | static int clk_debugfs_register_one(struct clk *c) |
917 | { | 917 | { |
918 | int err; | 918 | int err; |
919 | struct dentry *d, *child; | 919 | struct dentry *d; |
920 | struct clk *pa = c->pclk; | 920 | struct clk *pa = c->pclk; |
921 | char s[255]; | 921 | char s[255]; |
922 | char *p = s; | 922 | char *p = s; |
@@ -951,10 +951,7 @@ static int clk_debugfs_register_one(struct clk *c) | |||
951 | return 0; | 951 | return 0; |
952 | 952 | ||
953 | err_out: | 953 | err_out: |
954 | d = c->dent; | 954 | debugfs_remove_recursive(c->dent); |
955 | list_for_each_entry(child, &d->d_subdirs, d_u.d_child) | ||
956 | debugfs_remove(child); | ||
957 | debugfs_remove(c->dent); | ||
958 | return err; | 955 | return err; |
959 | } | 956 | } |
960 | 957 | ||