ARM: tegra: clock: Remove dependency between "set" and debugfs

Change-Id: I732f9428096d057e08092120c6f8c2890230a242
This commit is contained in:
Colin Cross
2010-10-25 14:15:44 -07:00
parent 348d21313d
commit f729366c17
3 changed files with 4 additions and 8 deletions

View File

@@ -138,7 +138,7 @@ void clk_init(struct clk *c)
if (!c->ops || !c->ops->enable) {
c->refcnt++;
c->set = 1;
c->set = true;
if (c->parent)
c->state = c->parent->state;
else
@@ -174,9 +174,7 @@ int clk_enable_locked(struct clk *c)
return ret;
}
c->state = ON;
#ifdef CONFIG_DEBUG_FS
c->set = 1;
#endif
c->set = true;
}
}
c->refcnt++;

View File

@@ -83,8 +83,8 @@ struct clk {
#ifdef CONFIG_DEBUG_FS
struct dentry *dent;
struct dentry *parent_dent;
bool set;
#endif
bool set;
struct clk_ops *ops;
unsigned long dvfs_rate;
unsigned long rate;

View File

@@ -1167,9 +1167,7 @@ static void tegra_clk_shared_bus_init(struct clk *c)
c->max_rate = c->parent->max_rate;
c->u.shared_bus_user.rate = c->parent->max_rate;
c->state = OFF;
#ifdef CONFIG_DEBUG_FS
c->set = 1;
#endif
c->set = true;
list_add_tail(&c->u.shared_bus_user.node,
&c->parent->u.shared_bus.list);