aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2
diff options
context:
space:
mode:
authorMichael Turquette <mturquette@linaro.org>2015-01-29 14:50:30 -0500
committerMichael Turquette <mturquette@linaro.org>2015-02-02 17:23:39 -0500
commit42ed83f51619bdde623f1a8d87836e707c54608d (patch)
tree1ab683f8a1af320488fc06e8b31ced05abda45f6 /arch/arm/mach-omap2
parentfe767560523d7556cb11fef466adf4b10141d73b (diff)
arm: omap2+ remove dead clock code
Remove omap_clocks_register and dummy_ck. The former is not used anymore now that the statically defined clk stuctures are replaced with proper descriptors and registered with the framework. The dummy clock in arch/arm/mach-omap2 is made redundant by the OMAP3+ clock data that migrated to drivers/clk. An additional benefit to this clean-up is removing the references to clk-private.h which will be removed. Cc: Paul Walmsley <paul@pwsan.com> Cc: Tero Kristo <t-kristo@ti.com> Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Michael Turquette <mturquette@linaro.org>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r--arch/arm/mach-omap2/clock.c16
-rw-r--r--arch/arm/mach-omap2/clock.h5
-rw-r--r--arch/arm/mach-omap2/clock_common_data.c14
3 files changed, 0 insertions, 35 deletions
diff --git a/arch/arm/mach-omap2/clock.c b/arch/arm/mach-omap2/clock.c
index 6ad5b4dbd33e..d9c128e6a73f 100644
--- a/arch/arm/mach-omap2/clock.c
+++ b/arch/arm/mach-omap2/clock.c
@@ -23,7 +23,6 @@
23#include <linux/clk-provider.h> 23#include <linux/clk-provider.h>
24#include <linux/io.h> 24#include <linux/io.h>
25#include <linux/bitops.h> 25#include <linux/bitops.h>
26#include <linux/clk-private.h>
27#include <asm/cpu.h> 26#include <asm/cpu.h>
28 27
29#include <trace/events/power.h> 28#include <trace/events/power.h>
@@ -630,21 +629,6 @@ const struct clk_hw_omap_ops clkhwops_wait = {
630}; 629};
631 630
632/** 631/**
633 * omap_clocks_register - register an array of omap_clk
634 * @ocs: pointer to an array of omap_clk to register
635 */
636void __init omap_clocks_register(struct omap_clk oclks[], int cnt)
637{
638 struct omap_clk *c;
639
640 for (c = oclks; c < oclks + cnt; c++) {
641 clkdev_add(&c->lk);
642 if (!__clk_init(NULL, c->lk.clk))
643 omap2_init_clk_hw_omap_clocks(c->lk.clk);
644 }
645}
646
647/**
648 * omap2_clk_switch_mpurate_at_boot - switch ARM MPU rate by boot-time argument 632 * omap2_clk_switch_mpurate_at_boot - switch ARM MPU rate by boot-time argument
649 * @mpurate_ck_name: clk name of the clock to change rate 633 * @mpurate_ck_name: clk name of the clock to change rate
650 * 634 *
diff --git a/arch/arm/mach-omap2/clock.h b/arch/arm/mach-omap2/clock.h
index c5b3a7f3e41d..6a10ce3747a0 100644
--- a/arch/arm/mach-omap2/clock.h
+++ b/arch/arm/mach-omap2/clock.h
@@ -245,7 +245,6 @@ struct ti_clk_features {
245extern struct ti_clk_features ti_clk_features; 245extern struct ti_clk_features ti_clk_features;
246 246
247extern const struct clkops clkops_omap2_dflt_wait; 247extern const struct clkops clkops_omap2_dflt_wait;
248extern const struct clkops clkops_dummy;
249extern const struct clkops clkops_omap2_dflt; 248extern const struct clkops clkops_omap2_dflt;
250 249
251extern struct clk_functions omap2_clk_functions; 250extern struct clk_functions omap2_clk_functions;
@@ -254,8 +253,6 @@ extern const struct clksel_rate gpt_32k_rates[];
254extern const struct clksel_rate gpt_sys_rates[]; 253extern const struct clksel_rate gpt_sys_rates[];
255extern const struct clksel_rate gfx_l3_rates[]; 254extern const struct clksel_rate gfx_l3_rates[];
256extern const struct clksel_rate dsp_ick_rates[]; 255extern const struct clksel_rate dsp_ick_rates[];
257extern struct clk_core dummy_ck_core;
258extern struct clk dummy_ck;
259 256
260extern const struct clk_hw_omap_ops clkhwops_iclk_wait; 257extern const struct clk_hw_omap_ops clkhwops_iclk_wait;
261extern const struct clk_hw_omap_ops clkhwops_wait; 258extern const struct clk_hw_omap_ops clkhwops_wait;
@@ -280,7 +277,5 @@ extern void __iomem *clk_memmaps[];
280extern int omap2_clkops_enable_clkdm(struct clk_hw *hw); 277extern int omap2_clkops_enable_clkdm(struct clk_hw *hw);
281extern void omap2_clkops_disable_clkdm(struct clk_hw *hw); 278extern void omap2_clkops_disable_clkdm(struct clk_hw *hw);
282 279
283extern void omap_clocks_register(struct omap_clk *oclks, int cnt);
284
285void __init ti_clk_init_features(void); 280void __init ti_clk_init_features(void);
286#endif 281#endif
diff --git a/arch/arm/mach-omap2/clock_common_data.c b/arch/arm/mach-omap2/clock_common_data.c
index febd0a279224..61b60dfb14ce 100644
--- a/arch/arm/mach-omap2/clock_common_data.c
+++ b/arch/arm/mach-omap2/clock_common_data.c
@@ -16,7 +16,6 @@
16 * OMAP3xxx clock definition files. 16 * OMAP3xxx clock definition files.
17 */ 17 */
18 18
19#include <linux/clk-private.h>
20#include "clock.h" 19#include "clock.h"
21 20
22/* clksel_rate data common to 24xx/343x */ 21/* clksel_rate data common to 24xx/343x */
@@ -114,16 +113,3 @@ const struct clksel_rate div31_1to31_rates[] = {
114 { .div = 31, .val = 31, .flags = RATE_IN_4430 | RATE_IN_AM33XX }, 113 { .div = 31, .val = 31, .flags = RATE_IN_4430 | RATE_IN_AM33XX },
115 { .div = 0 }, 114 { .div = 0 },
116}; 115};
117
118/* Clocks shared between various OMAP SoCs */
119
120static struct clk_ops dummy_ck_ops = {};
121
122struct clk_core dummy_ck_core = {
123 .name = "dummy_clk",
124 .ops = &dummy_ck_ops,
125 .flags = CLK_IS_BASIC,
126};
127struct clk dummy_ck = {
128 .core = &dummy_ck_core,
129};