aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/clock.c
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2010-02-10 21:18:13 -0500
committerTony Lindgren <tony@atomide.com>2010-02-10 21:18:13 -0500
commit0482e3c6f704d25b6a4e3c940caeeacece4e6d74 (patch)
treea8506b9b15ed9a31c2171fc7b461ef52453307b0 /arch/arm/plat-omap/clock.c
parent9ba874506b7b3883d78b8cad61eba39c4bb09885 (diff)
parenta6c7fdd29350a74ba5f76809436de9c3d6763009 (diff)
Merge branch 'omap-fixes-for-linus' into omap-for-linus
Diffstat (limited to 'arch/arm/plat-omap/clock.c')
-rw-r--r--arch/arm/plat-omap/clock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/plat-omap/clock.c b/arch/arm/plat-omap/clock.c
index 0ae27538385d..e3b58afa5dcf 100644
--- a/arch/arm/plat-omap/clock.c
+++ b/arch/arm/plat-omap/clock.c
@@ -402,7 +402,7 @@ static struct dentry *clk_debugfs_root;
402static int clk_debugfs_register_one(struct clk *c) 402static int clk_debugfs_register_one(struct clk *c)
403{ 403{
404 int err; 404 int err;
405 struct dentry *d, *child; 405 struct dentry *d, *child, *child_tmp;
406 struct clk *pa = c->parent; 406 struct clk *pa = c->parent;
407 char s[255]; 407 char s[255];
408 char *p = s; 408 char *p = s;
@@ -434,7 +434,7 @@ static int clk_debugfs_register_one(struct clk *c)
434 434
435err_out: 435err_out:
436 d = c->dent; 436 d = c->dent;
437 list_for_each_entry(child, &d->d_subdirs, d_u.d_child) 437 list_for_each_entry_safe(child, child_tmp, &d->d_subdirs, d_u.d_child)
438 debugfs_remove(child); 438 debugfs_remove(child);
439 debugfs_remove(c->dent); 439 debugfs_remove(c->dent);
440 return err; 440 return err;