aboutsummaryrefslogtreecommitdiffstats
path: root/arch/avr32/mach-at32ap/time-tc.c
diff options
context:
space:
mode:
authorHaavard Skinnemoen <hskinnemoen@atmel.com>2007-03-14 08:23:44 -0400
committerHaavard Skinnemoen <hskinnemoen@atmel.com>2007-04-27 07:44:13 -0400
commit188ff65d49dadf7b0e9b6718abc3fe98a5098711 (patch)
tree29c930e7609d441f543baade2ddac70665d7bf54 /arch/avr32/mach-at32ap/time-tc.c
parent19b7ce8bad718a2850ea19aeb7383f1728596c24 (diff)
[AVR32] Don't enable clocks with no users
Bring the code that sets the initial PM clock masks in line with the comment preceding it by only enabling clocks that have users != 0. Fix SM clock definition and avr32_hpt_init() so that the SM and TC0 clocks keep ticking. Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Diffstat (limited to 'arch/avr32/mach-at32ap/time-tc.c')
-rw-r--r--arch/avr32/mach-at32ap/time-tc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/avr32/mach-at32ap/time-tc.c b/arch/avr32/mach-at32ap/time-tc.c
index 7ac0e94d8ed5..e3070bdd4bb9 100644
--- a/arch/avr32/mach-at32ap/time-tc.c
+++ b/arch/avr32/mach-at32ap/time-tc.c
@@ -135,6 +135,7 @@ int avr32_hpt_init(unsigned int count)
135 pr_debug("timer: could not get clk: %ld\n", PTR_ERR(pclk)); 135 pr_debug("timer: could not get clk: %ld\n", PTR_ERR(pclk));
136 goto out_error; 136 goto out_error;
137 } 137 }
138 clk_enable(pclk);
138 139
139 regs = platform_get_resource(&at32_systc0_device, IORESOURCE_MEM, 0); 140 regs = platform_get_resource(&at32_systc0_device, IORESOURCE_MEM, 0);
140 if (!regs) { 141 if (!regs) {