aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-davinci/clock.c
diff options
context:
space:
mode:
authorSergei Shtylyov <sshtylyov@ru.mvista.com>2009-09-30 11:48:03 -0400
committerKevin Hilman <khilman@deeprootsystems.com>2009-11-25 13:21:30 -0500
commit789a785ee4351a0b425d1b3702d40aeb71745ff3 (patch)
tree0ac26280bcbd162c94d53e568f1c3c404474e0f4 /arch/arm/mach-davinci/clock.c
parenta9eb1f675c3363a174a424f7834e768d17cd20e5 (diff)
davinci: DA8xx: rename 'psc_ctlr' field into 'gpsc'
Replace badly chosen 'psc_ctlr' name of the 'struct clk' field (PSC already means "Power and Sleep Controller", so the '_ctlr' postfix makes the name tautological) with technically correct 'gpsc' (Global PSC -- which contains all the module registers). Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-davinci/clock.c')
-rw-r--r--arch/arm/mach-davinci/clock.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/arch/arm/mach-davinci/clock.c b/arch/arm/mach-davinci/clock.c
index e7696fcf05d8..29b6c7fa90d9 100644
--- a/arch/arm/mach-davinci/clock.c
+++ b/arch/arm/mach-davinci/clock.c
@@ -43,8 +43,7 @@ static void __clk_enable(struct clk *clk)
43 if (clk->parent) 43 if (clk->parent)
44 __clk_enable(clk->parent); 44 __clk_enable(clk->parent);
45 if (clk->usecount++ == 0 && (clk->flags & CLK_PSC)) 45 if (clk->usecount++ == 0 && (clk->flags & CLK_PSC))
46 davinci_psc_config(psc_domain(clk), clk->psc_ctlr, 46 davinci_psc_config(psc_domain(clk), clk->gpsc, clk->lpsc, 1);
47 clk->lpsc, 1);
48} 47}
49 48
50static void __clk_disable(struct clk *clk) 49static void __clk_disable(struct clk *clk)
@@ -52,8 +51,7 @@ static void __clk_disable(struct clk *clk)
52 if (WARN_ON(clk->usecount == 0)) 51 if (WARN_ON(clk->usecount == 0))
53 return; 52 return;
54 if (--clk->usecount == 0 && !(clk->flags & CLK_PLL)) 53 if (--clk->usecount == 0 && !(clk->flags & CLK_PLL))
55 davinci_psc_config(psc_domain(clk), clk->psc_ctlr, 54 davinci_psc_config(psc_domain(clk), clk->gpsc, clk->lpsc, 0);
56 clk->lpsc, 0);
57 if (clk->parent) 55 if (clk->parent)
58 __clk_disable(clk->parent); 56 __clk_disable(clk->parent);
59} 57}
@@ -230,11 +228,11 @@ static int __init clk_disable_unused(void)
230 continue; 228 continue;
231 229
232 /* ignore if in Disabled or SwRstDisable states */ 230 /* ignore if in Disabled or SwRstDisable states */
233 if (!davinci_psc_is_clk_active(ck->psc_ctlr, ck->lpsc)) 231 if (!davinci_psc_is_clk_active(ck->gpsc, ck->lpsc))
234 continue; 232 continue;
235 233
236 pr_info("Clocks: disable unused %s\n", ck->name); 234 pr_info("Clocks: disable unused %s\n", ck->name);
237 davinci_psc_config(psc_domain(ck), ck->psc_ctlr, ck->lpsc, 0); 235 davinci_psc_config(psc_domain(ck), ck->gpsc, ck->lpsc, 0);
238 } 236 }
239 spin_unlock_irq(&clockfw_lock); 237 spin_unlock_irq(&clockfw_lock);
240 238