summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/clock.c
diff options
context:
space:
mode:
authorTero Kristo <t-kristo@ti.com>2014-02-21 14:33:05 +0100
committerTero Kristo <t-kristo@ti.com>2014-07-02 14:06:31 +0200
commita37f05ac094fb0474ddaea8bcfa2c18e0df8cb2e (patch)
tree6c0f54d4706abfcabcda4738eeb237ae25a5b360 /arch/arm/mach-omap2/clock.c
parentARM: OMAP2: convert sys_ck and osc_ck to standard clock types (diff)
downloadlinux-a37f05ac094fb0474ddaea8bcfa2c18e0df8cb2e.tar.xz
linux-a37f05ac094fb0474ddaea8bcfa2c18e0df8cb2e.zip
ARM: OMAP2420: clock: get rid of fixed-div property use
Cleans up the code a bit and is useful for clock data DT conversion. Signed-off-by: Tero Kristo <t-kristo@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/clock.c')
-rw-r--r--arch/arm/mach-omap2/clock.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/arch/arm/mach-omap2/clock.c b/arch/arm/mach-omap2/clock.c
index 591581a66532..4ac6e3d2df03 100644
--- a/arch/arm/mach-omap2/clock.c
+++ b/arch/arm/mach-omap2/clock.c
@@ -82,27 +82,6 @@ u32 omap2_clk_readl(struct clk_hw_omap *clk, void __iomem *reg)
}
/*
- * Used for clocks that have the same value as the parent clock,
- * divided by some factor
- */
-unsigned long omap_fixed_divisor_recalc(struct clk_hw *hw,
- unsigned long parent_rate)
-{
- struct clk_hw_omap *oclk;
-
- if (!hw) {
- pr_warn("%s: hw is NULL\n", __func__);
- return -EINVAL;
- }
-
- oclk = to_clk_hw_omap(hw);
-
- WARN_ON(!oclk->fixed_div);
-
- return parent_rate / oclk->fixed_div;
-}
-
-/*
* OMAP2+ specific clock functions
*/