Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 257385
b: refs/heads/master
c: 12520c4
h: refs/heads/master
i:
  257383: 079fe29
v: v3
  • Loading branch information
Al Viro committed Jul 21, 2011
1 parent a14496b commit f0cdc51
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 42 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f15146380d28b746df3c8b81b392812eb982382a
refs/heads/master: 12520c438f48113593130d210eba821a532c893b
7 changes: 2 additions & 5 deletions trunk/arch/arm/mach-tegra/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ static const struct file_operations possible_parents_fops = {

static int clk_debugfs_register_one(struct clk *c)
{
struct dentry *d, *child, *child_tmp;
struct dentry *d;

d = debugfs_create_dir(c->name, clk_debugfs_root);
if (!d)
Expand Down Expand Up @@ -614,10 +614,7 @@ static int clk_debugfs_register_one(struct clk *c)
return 0;

err_out:
d = c->dent;
list_for_each_entry_safe(child, child_tmp, &d->d_subdirs, d_u.d_child)
debugfs_remove(child);
debugfs_remove(c->dent);
debugfs_remove_recursive(c->dent);
return -ENOMEM;
}

Expand Down
20 changes: 3 additions & 17 deletions trunk/arch/arm/mach-ux500/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ static const struct file_operations set_rate_fops = {
static struct dentry *clk_debugfs_register_dir(struct clk *c,
struct dentry *p_dentry)
{
struct dentry *d, *clk_d, *child, *child_tmp;
struct dentry *d, *clk_d;
char s[255];
char *p = s;

Expand Down Expand Up @@ -666,24 +666,10 @@ static struct dentry *clk_debugfs_register_dir(struct clk *c,
return clk_d;

err_out:
d = clk_d;
list_for_each_entry_safe(child, child_tmp, &d->d_subdirs, d_u.d_child)
debugfs_remove(child);
debugfs_remove(clk_d);
debugfs_remove_recursive(clk_d);
return NULL;
}

static void clk_debugfs_remove_dir(struct dentry *cdentry)
{
struct dentry *d, *child, *child_tmp;

d = cdentry;
list_for_each_entry_safe(child, child_tmp, &d->d_subdirs, d_u.d_child)
debugfs_remove(child);
debugfs_remove(cdentry);
return ;
}

static int clk_debugfs_register_one(struct clk *c)
{
struct clk *pa = c->parent_periph;
Expand All @@ -700,7 +686,7 @@ static int clk_debugfs_register_one(struct clk *c)
c->dent_bus = clk_debugfs_register_dir(c,
bpa->dent_bus ? bpa->dent_bus : bpa->dent);
if ((!c->dent_bus) && (c->dent)) {
clk_debugfs_remove_dir(c->dent);
debugfs_remove_recursive(c->dent);
c->dent = NULL;
return -ENOMEM;
}
Expand Down
6 changes: 2 additions & 4 deletions trunk/arch/arm/plat-omap/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ static struct dentry *clk_debugfs_root;
static int clk_debugfs_register_one(struct clk *c)
{
int err;
struct dentry *d, *child, *child_tmp;
struct dentry *d;
struct clk *pa = c->parent;
char s[255];
char *p = s;
Expand Down Expand Up @@ -510,9 +510,7 @@ static int clk_debugfs_register_one(struct clk *c)

err_out:
d = c->dent;
list_for_each_entry_safe(child, child_tmp, &d->d_subdirs, d_u.d_child)
debugfs_remove(child);
debugfs_remove(c->dent);
debugfs_remove_recursive(c->dent);
return err;
}

Expand Down
7 changes: 2 additions & 5 deletions trunk/arch/arm/plat-samsung/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ static struct dentry *clk_debugfs_root;
static int clk_debugfs_register_one(struct clk *c)
{
int err;
struct dentry *d, *child, *child_tmp;
struct dentry *d;
struct clk *pa = c->parent;
char s[255];
char *p = s;
Expand Down Expand Up @@ -488,10 +488,7 @@ static int clk_debugfs_register_one(struct clk *c)
return 0;

err_out:
d = c->dent;
list_for_each_entry_safe(child, child_tmp, &d->d_subdirs, d_u.d_child)
debugfs_remove(child);
debugfs_remove(c->dent);
debugfs_remove_recursive(c->dent);
return err;
}

Expand Down
7 changes: 2 additions & 5 deletions trunk/arch/arm/plat-spear/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@ static struct dentry *clk_debugfs_root;
static int clk_debugfs_register_one(struct clk *c)
{
int err;
struct dentry *d, *child;
struct dentry *d;
struct clk *pa = c->pclk;
char s[255];
char *p = s;
Expand Down Expand Up @@ -951,10 +951,7 @@ static int clk_debugfs_register_one(struct clk *c)
return 0;

err_out:
d = c->dent;
list_for_each_entry(child, &d->d_subdirs, d_u.d_child)
debugfs_remove(child);
debugfs_remove(c->dent);
debugfs_remove_recursive(c->dent);
return err;
}

Expand Down
7 changes: 2 additions & 5 deletions trunk/drivers/sh/clk/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ static struct dentry *clk_debugfs_root;
static int clk_debugfs_register_one(struct clk *c)
{
int err;
struct dentry *d, *child, *child_tmp;
struct dentry *d;
struct clk *pa = c->parent;
char s[255];
char *p = s;
Expand Down Expand Up @@ -699,10 +699,7 @@ static int clk_debugfs_register_one(struct clk *c)
return 0;

err_out:
d = c->dentry;
list_for_each_entry_safe(child, child_tmp, &d->d_subdirs, d_u.d_child)
debugfs_remove(child);
debugfs_remove(c->dentry);
debugfs_remove_recursive(c->dentry);
return err;
}

Expand Down

0 comments on commit f0cdc51

Please sign in to comment.