]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
OMAP1 clock: convert armwdt_ck to use the fixed divisor recalc function
authorPaul Walmsley <paul@pwsan.com>
Wed, 27 Jan 2010 03:12:57 +0000 (20:12 -0700)
committerPaul Walmsley <paul@pwsan.com>
Wed, 27 Jan 2010 03:12:57 +0000 (20:12 -0700)
The armwdt_ck clock uses a fixed divisor, so it can use the OMAP clock
fixed divisor recalculation code, rather than a custom function.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap1/clock.c
arch/arm/mach-omap1/clock_data.c

index 04f1d29cba2c231033133da8d6ae7eb3c360c6ab..3e052f6532b19e877dc3aafd1e504f54bf5b983a 100644 (file)
@@ -52,12 +52,6 @@ const struct clkops clkops_dummy = {
        .disable        = clk_omap1_dummy_disable,
 };
 
-/* XXX can be replaced with a fixed_divisor_recalc */
-unsigned long omap1_watchdog_recalc(struct clk *clk)
-{
-       return clk->parent->rate / 14;
-}
-
 unsigned long omap1_uart_recalc(struct clk *clk)
 {
        unsigned int val = __raw_readl(clk->enable_reg);
index 65e7b5b85d832a2799f5511a75ae82117dce1449..edefb3440d30398bb144e25ffc73100511be6053 100644 (file)
@@ -149,7 +149,8 @@ static struct arm_idlect1_clk armwdt_ck = {
                .flags          = CLOCK_IDLE_CONTROL,
                .enable_reg     = OMAP1_IO_ADDRESS(ARM_IDLECT2),
                .enable_bit     = EN_WDTCK,
-               .recalc         = &omap1_watchdog_recalc,
+               .fixed_div      = 14,
+               .recalc         = &omap_fixed_divisor_recalc,
        },
        .idlect_shift   = 0,
 };