diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-14 16:42:43 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-14 16:42:43 -0400 |
commit | 2cf4d4514d5b43c1f3b64bd0ec8b9853bde8f1dc (patch) | |
tree | e35a625496acc6ac852846d40b8851186b9d1ac4 /arch/arm/mach-davinci/clock.c | |
parent | 44b7532b8b464f606053562400719c9c21276037 (diff) | |
parent | ce53895a5d24e0ee19fb92f56c17323fb4c9ab27 (diff) |
Merge branch 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm
* 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm: (417 commits)
MAINTAINERS: EB110ATX is not ebsa110
MAINTAINERS: update Eric Miao's email address and status
fb: add support of LCD display controller on pxa168/910 (base layer)
[ARM] 5552/1: ep93xx get_uart_rate(): use EP93XX_SYSCON_PWRCNT and EP93XX_SYSCON_PWRCN
[ARM] pxa/sharpsl_pm: zaurus needs generic pxa suspend/resume routines
[ARM] 5544/1: Trust PrimeCell resource sizes
[ARM] pxa/sharpsl_pm: cleanup of gpio-related code.
[ARM] pxa/sharpsl_pm: drop set_irq_type calls
[ARM] pxa/sharpsl_pm: merge pxa-specific code into generic one
[ARM] pxa/sharpsl_pm: merge the two sharpsl_pm.c since it's now pxa specific
[ARM] sa1100: remove unused collie_pm.c
[ARM] pxa: fix the conflicting non-static declarations of global_gpios[]
[ARM] 5550/1: Add default configure file for w90p910 platform
[ARM] 5549/1: Add clock api for w90p910 platform.
[ARM] 5548/1: Add gpio api for w90p910 platform
[ARM] 5551/1: Add multi-function pin api for w90p910 platform.
[ARM] Make ARM_VIC_NR depend on ARM_VIC
[ARM] 5546/1: ARM PL022 SSP/SPI driver v3
ARM: OMAP4: SMP: Update defconfig for OMAP4430
ARM: OMAP4: SMP: Enable SMP support for OMAP4430
...
Diffstat (limited to 'arch/arm/mach-davinci/clock.c')
-rw-r--r-- | arch/arm/mach-davinci/clock.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/arch/arm/mach-davinci/clock.c b/arch/arm/mach-davinci/clock.c index f0baaa15a57e..39bf321d70a2 100644 --- a/arch/arm/mach-davinci/clock.c +++ b/arch/arm/mach-davinci/clock.c | |||
@@ -42,7 +42,8 @@ static void __clk_enable(struct clk *clk) | |||
42 | if (clk->parent) | 42 | if (clk->parent) |
43 | __clk_enable(clk->parent); | 43 | __clk_enable(clk->parent); |
44 | if (clk->usecount++ == 0 && (clk->flags & CLK_PSC)) | 44 | if (clk->usecount++ == 0 && (clk->flags & CLK_PSC)) |
45 | davinci_psc_config(psc_domain(clk), clk->lpsc, 1); | 45 | davinci_psc_config(psc_domain(clk), clk->psc_ctlr, |
46 | clk->lpsc, 1); | ||
46 | } | 47 | } |
47 | 48 | ||
48 | static void __clk_disable(struct clk *clk) | 49 | static void __clk_disable(struct clk *clk) |
@@ -50,7 +51,8 @@ static void __clk_disable(struct clk *clk) | |||
50 | if (WARN_ON(clk->usecount == 0)) | 51 | if (WARN_ON(clk->usecount == 0)) |
51 | return; | 52 | return; |
52 | if (--clk->usecount == 0 && !(clk->flags & CLK_PLL)) | 53 | if (--clk->usecount == 0 && !(clk->flags & CLK_PLL)) |
53 | davinci_psc_config(psc_domain(clk), clk->lpsc, 0); | 54 | davinci_psc_config(psc_domain(clk), clk->psc_ctlr, |
55 | clk->lpsc, 0); | ||
54 | if (clk->parent) | 56 | if (clk->parent) |
55 | __clk_disable(clk->parent); | 57 | __clk_disable(clk->parent); |
56 | } | 58 | } |
@@ -164,11 +166,11 @@ static int __init clk_disable_unused(void) | |||
164 | continue; | 166 | continue; |
165 | 167 | ||
166 | /* ignore if in Disabled or SwRstDisable states */ | 168 | /* ignore if in Disabled or SwRstDisable states */ |
167 | if (!davinci_psc_is_clk_active(ck->lpsc)) | 169 | if (!davinci_psc_is_clk_active(ck->psc_ctlr, ck->lpsc)) |
168 | continue; | 170 | continue; |
169 | 171 | ||
170 | pr_info("Clocks: disable unused %s\n", ck->name); | 172 | pr_info("Clocks: disable unused %s\n", ck->name); |
171 | davinci_psc_config(psc_domain(ck), ck->lpsc, 0); | 173 | davinci_psc_config(psc_domain(ck), ck->psc_ctlr, ck->lpsc, 0); |
172 | } | 174 | } |
173 | spin_unlock_irq(&clockfw_lock); | 175 | spin_unlock_irq(&clockfw_lock); |
174 | 176 | ||