Commit 4db4afb4 authored by Colin Cross's avatar Colin Cross

ARM: tegra: clock: Minor cleanups

Remove unnecessary uses of #ifdef CONFIG_DEBUG_FS
Convert bool assignments from 1 to true
Acked-by: default avatarOlof Johansson <olof@lixom.net>
Signed-off-by: default avatarColin Cross <ccross@android.com>
parent 310992ca
...@@ -135,7 +135,7 @@ void clk_init(struct clk *c) ...@@ -135,7 +135,7 @@ void clk_init(struct clk *c)
if (!c->ops || !c->ops->enable) { if (!c->ops || !c->ops->enable) {
c->refcnt++; c->refcnt++;
c->set = 1; c->set = true;
if (c->parent) if (c->parent)
c->state = c->parent->state; c->state = c->parent->state;
else else
...@@ -169,9 +169,7 @@ int clk_enable(struct clk *c) ...@@ -169,9 +169,7 @@ int clk_enable(struct clk *c)
goto out; goto out;
} }
c->state = ON; c->state = ON;
#ifdef CONFIG_DEBUG_FS c->set = true;
c->set = 1;
#endif
} }
} }
c->refcnt++; c->refcnt++;
......
...@@ -80,8 +80,8 @@ struct clk { ...@@ -80,8 +80,8 @@ struct clk {
#ifdef CONFIG_DEBUG_FS #ifdef CONFIG_DEBUG_FS
struct dentry *dent; struct dentry *dent;
bool set;
#endif #endif
bool set;
struct clk_ops *ops; struct clk_ops *ops;
unsigned long rate; unsigned long rate;
unsigned long max_rate; unsigned long max_rate;
......
...@@ -1218,9 +1218,7 @@ static void tegra_clk_shared_bus_init(struct clk *c) ...@@ -1218,9 +1218,7 @@ static void tegra_clk_shared_bus_init(struct clk *c)
c->max_rate = c->parent->max_rate; c->max_rate = c->parent->max_rate;
c->u.shared_bus_user.rate = c->parent->max_rate; c->u.shared_bus_user.rate = c->parent->max_rate;
c->state = OFF; c->state = OFF;
#ifdef CONFIG_DEBUG_FS
c->set = true; c->set = true;
#endif
spin_lock_irqsave(&c->parent->spinlock, flags); spin_lock_irqsave(&c->parent->spinlock, flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment