diff options
Diffstat (limited to 'arch/arm/mach-omap1/clock.c')
-rw-r--r-- | arch/arm/mach-omap1/clock.c | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/arch/arm/mach-omap1/clock.c b/arch/arm/mach-omap1/clock.c index 04f1d29cba2c..e0aec1007a0d 100644 --- a/arch/arm/mach-omap1/clock.c +++ b/arch/arm/mach-omap1/clock.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * linux/arch/arm/mach-omap1/clock.c | 2 | * linux/arch/arm/mach-omap1/clock.c |
3 | * | 3 | * |
4 | * Copyright (C) 2004 - 2005, 2009 Nokia corporation | 4 | * Copyright (C) 2004 - 2005, 2009-2010 Nokia Corporation |
5 | * Written by Tuukka Tikkanen <tuukka.tikkanen@elektrobit.com> | 5 | * Written by Tuukka Tikkanen <tuukka.tikkanen@elektrobit.com> |
6 | * | 6 | * |
7 | * Modified to use omap shared clock framework by | 7 | * Modified to use omap shared clock framework by |
@@ -38,26 +38,6 @@ struct clk *api_ck_p, *ck_dpll1_p, *ck_ref_p; | |||
38 | * Omap1 specific clock functions | 38 | * Omap1 specific clock functions |
39 | *-------------------------------------------------------------------------*/ | 39 | *-------------------------------------------------------------------------*/ |
40 | 40 | ||
41 | static int clk_omap1_dummy_enable(struct clk *clk) | ||
42 | { | ||
43 | return 0; | ||
44 | } | ||
45 | |||
46 | static void clk_omap1_dummy_disable(struct clk *clk) | ||
47 | { | ||
48 | } | ||
49 | |||
50 | const struct clkops clkops_dummy = { | ||
51 | .enable = clk_omap1_dummy_enable, | ||
52 | .disable = clk_omap1_dummy_disable, | ||
53 | }; | ||
54 | |||
55 | /* XXX can be replaced with a fixed_divisor_recalc */ | ||
56 | unsigned long omap1_watchdog_recalc(struct clk *clk) | ||
57 | { | ||
58 | return clk->parent->rate / 14; | ||
59 | } | ||
60 | |||
61 | unsigned long omap1_uart_recalc(struct clk *clk) | 41 | unsigned long omap1_uart_recalc(struct clk *clk) |
62 | { | 42 | { |
63 | unsigned int val = __raw_readl(clk->enable_reg); | 43 | unsigned int val = __raw_readl(clk->enable_reg); |
@@ -577,9 +557,6 @@ const struct clkops clkops_uart = { | |||
577 | 557 | ||
578 | long omap1_clk_round_rate(struct clk *clk, unsigned long rate) | 558 | long omap1_clk_round_rate(struct clk *clk, unsigned long rate) |
579 | { | 559 | { |
580 | if (clk->flags & RATE_FIXED) | ||
581 | return clk->rate; | ||
582 | |||
583 | if (clk->round_rate != NULL) | 560 | if (clk->round_rate != NULL) |
584 | return clk->round_rate(clk, rate); | 561 | return clk->round_rate(clk, rate); |
585 | 562 | ||