]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/avr32/mach-at32ap/time-tc.c
[AVR32] Don't enable clocks with no users
[karo-tx-linux.git] / arch / avr32 / mach-at32ap / time-tc.c
index 7ac0e94d8ed522280af039a5eae9cdd2a82705ef..e3070bdd4bb960b03aabcc31e56403dfb981f3bf 100644 (file)
@@ -135,6 +135,7 @@ int avr32_hpt_init(unsigned int count)
                pr_debug("timer: could not get clk: %ld\n", PTR_ERR(pclk));
                goto out_error;
        }
+       clk_enable(pclk);
 
        regs = platform_get_resource(&at32_systc0_device, IORESOURCE_MEM, 0);
        if (!regs) {