]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: tegra: clock: Minor cleanups
authorColin Cross <ccross@android.com>
Mon, 21 Feb 2011 07:35:07 +0000 (23:35 -0800)
committerColin Cross <ccross@android.com>
Mon, 21 Feb 2011 08:10:46 +0000 (00:10 -0800)
Remove unnecessary uses of #ifdef CONFIG_DEBUG_FS
Convert bool assignments from 1 to true

Acked-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Colin Cross <ccross@android.com>
arch/arm/mach-tegra/clock.c
arch/arm/mach-tegra/clock.h
arch/arm/mach-tegra/tegra2_clocks.c

index aff4c5b8c378134fa0497aefa890edd53f075de4..f1f9c6d36bd2f60488906976682901d5b9cc0a2a 100644 (file)
@@ -135,7 +135,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
@@ -169,9 +169,7 @@ int clk_enable(struct clk *c)
                                goto out;
                        }
                        c->state = ON;
-#ifdef CONFIG_DEBUG_FS
-                       c->set = 1;
-#endif
+                       c->set = true;
                }
        }
        c->refcnt++;
index bb755c28a509ac61610f224761b61f6edd7aa959..ebe6ea8b0575599fc9b2cf73b32a4aab1ade3c18 100644 (file)
@@ -80,8 +80,8 @@ struct clk {
 
 #ifdef CONFIG_DEBUG_FS
        struct dentry           *dent;
-       bool                    set;
 #endif
+       bool                    set;
        struct clk_ops          *ops;
        unsigned long           rate;
        unsigned long           max_rate;
index 1e414ba6df4b6e7199c8d64d7497cd5288f4d4b5..f6f685c4f3397ab346af14d18e1514b1bc0c90b2 100644 (file)
@@ -1218,9 +1218,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 = true;
-#endif
 
        spin_lock_irqsave(&c->parent->spinlock, flags);