mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 05:17:10 +09:00
ARM: tegra: clock: Remove dependency between "set" and debugfs
Change-Id: I732f9428096d057e08092120c6f8c2890230a242
This commit is contained in:
@@ -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++;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user