diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2011-01-26 19:20:52 -0500 |
---|---|---|
committer | David Brown <davidb@codeaurora.org> | 2011-01-28 14:20:46 -0500 |
commit | 437f629d4ea0a574b6102101fe4a51232a7cc105 (patch) | |
tree | 91074b2a9f1fd18d6d1fe420cc14c26b2d523731 /arch/arm | |
parent | 5c548add9899a1f8fcd47a58c4925c8ac4fc3027 (diff) |
msm: clock: Remove unused code and definitions
This code is dead or otherwise useless so just remove it.
Reviewed-by: Saravana Kannan <skannan@codeaurora.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: David Brown <davidb@codeaurora.org>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-msm/board-msm8x60.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-msm/clock.c | 20 | ||||
-rw-r--r-- | arch/arm/mach-msm/clock.h | 42 |
3 files changed, 2 insertions, 64 deletions
diff --git a/arch/arm/mach-msm/board-msm8x60.c b/arch/arm/mach-msm/board-msm8x60.c index 9b5eb2b4ae1b..b3c55f138fce 100644 --- a/arch/arm/mach-msm/board-msm8x60.c +++ b/arch/arm/mach-msm/board-msm8x60.c | |||
@@ -28,10 +28,6 @@ | |||
28 | #include <mach/board.h> | 28 | #include <mach/board.h> |
29 | #include <mach/msm_iomap.h> | 29 | #include <mach/msm_iomap.h> |
30 | 30 | ||
31 | unsigned long clk_get_max_axi_khz(void) | ||
32 | { | ||
33 | return 0; | ||
34 | } | ||
35 | 31 | ||
36 | static void __init msm8x60_map_io(void) | 32 | static void __init msm8x60_map_io(void) |
37 | { | 33 | { |
diff --git a/arch/arm/mach-msm/clock.c b/arch/arm/mach-msm/clock.c index 2069bfaa3a26..b67498dfa8d9 100644 --- a/arch/arm/mach-msm/clock.c +++ b/arch/arm/mach-msm/clock.c | |||
@@ -37,13 +37,6 @@ struct clk *msm_clocks; | |||
37 | unsigned msm_num_clocks; | 37 | unsigned msm_num_clocks; |
38 | 38 | ||
39 | /* | 39 | /* |
40 | * Bitmap of enabled clocks, excluding ACPU which is always | ||
41 | * enabled | ||
42 | */ | ||
43 | static DECLARE_BITMAP(clock_map_enabled, NR_CLKS); | ||
44 | static DEFINE_SPINLOCK(clock_map_lock); | ||
45 | |||
46 | /* | ||
47 | * Standard clock functions defined in include/linux/clk.h | 40 | * Standard clock functions defined in include/linux/clk.h |
48 | */ | 41 | */ |
49 | struct clk *clk_get(struct device *dev, const char *id) | 42 | struct clk *clk_get(struct device *dev, const char *id) |
@@ -77,12 +70,8 @@ int clk_enable(struct clk *clk) | |||
77 | unsigned long flags; | 70 | unsigned long flags; |
78 | spin_lock_irqsave(&clocks_lock, flags); | 71 | spin_lock_irqsave(&clocks_lock, flags); |
79 | clk->count++; | 72 | clk->count++; |
80 | if (clk->count == 1) { | 73 | if (clk->count == 1) |
81 | clk->ops->enable(clk->id); | 74 | clk->ops->enable(clk->id); |
82 | spin_lock(&clock_map_lock); | ||
83 | clock_map_enabled[BIT_WORD(clk->id)] |= BIT_MASK(clk->id); | ||
84 | spin_unlock(&clock_map_lock); | ||
85 | } | ||
86 | spin_unlock_irqrestore(&clocks_lock, flags); | 75 | spin_unlock_irqrestore(&clocks_lock, flags); |
87 | return 0; | 76 | return 0; |
88 | } | 77 | } |
@@ -94,12 +83,8 @@ void clk_disable(struct clk *clk) | |||
94 | spin_lock_irqsave(&clocks_lock, flags); | 83 | spin_lock_irqsave(&clocks_lock, flags); |
95 | BUG_ON(clk->count == 0); | 84 | BUG_ON(clk->count == 0); |
96 | clk->count--; | 85 | clk->count--; |
97 | if (clk->count == 0) { | 86 | if (clk->count == 0) |
98 | clk->ops->disable(clk->id); | 87 | clk->ops->disable(clk->id); |
99 | spin_lock(&clock_map_lock); | ||
100 | clock_map_enabled[BIT_WORD(clk->id)] &= ~BIT_MASK(clk->id); | ||
101 | spin_unlock(&clock_map_lock); | ||
102 | } | ||
103 | spin_unlock_irqrestore(&clocks_lock, flags); | 88 | spin_unlock_irqrestore(&clocks_lock, flags); |
104 | } | 89 | } |
105 | EXPORT_SYMBOL(clk_disable); | 90 | EXPORT_SYMBOL(clk_disable); |
@@ -196,7 +181,6 @@ void __init msm_clock_init(struct clk *clock_tbl, unsigned num_clocks) | |||
196 | { | 181 | { |
197 | unsigned n; | 182 | unsigned n; |
198 | 183 | ||
199 | spin_lock_init(&clocks_lock); | ||
200 | mutex_lock(&clocks_mutex); | 184 | mutex_lock(&clocks_mutex); |
201 | msm_clocks = clock_tbl; | 185 | msm_clocks = clock_tbl; |
202 | msm_num_clocks = num_clocks; | 186 | msm_num_clocks = num_clocks; |
diff --git a/arch/arm/mach-msm/clock.h b/arch/arm/mach-msm/clock.h index c270b552ed13..db9a77a0f9e2 100644 --- a/arch/arm/mach-msm/clock.h +++ b/arch/arm/mach-msm/clock.h | |||
@@ -59,51 +59,9 @@ struct clk { | |||
59 | struct device *dev; | 59 | struct device *dev; |
60 | }; | 60 | }; |
61 | 61 | ||
62 | #define A11S_CLK_CNTL_ADDR (MSM_CSR_BASE + 0x100) | ||
63 | #define A11S_CLK_SEL_ADDR (MSM_CSR_BASE + 0x104) | ||
64 | #define A11S_VDD_SVS_PLEVEL_ADDR (MSM_CSR_BASE + 0x124) | ||
65 | |||
66 | #ifdef CONFIG_DEBUG_FS | ||
67 | #define CLOCK_DBG_NAME(x) .dbg_name = x, | ||
68 | #else | ||
69 | #define CLOCK_DBG_NAME(x) | ||
70 | #endif | ||
71 | |||
72 | #define CLOCK(clk_name, clk_id, clk_dev, clk_flags) { \ | ||
73 | .name = clk_name, \ | ||
74 | .id = clk_id, \ | ||
75 | .flags = clk_flags, \ | ||
76 | .dev = clk_dev, \ | ||
77 | CLOCK_DBG_NAME(#clk_id) \ | ||
78 | } | ||
79 | |||
80 | #define OFF CLKFLAG_AUTO_OFF | 62 | #define OFF CLKFLAG_AUTO_OFF |
81 | #define CLK_MIN CLKFLAG_MIN | 63 | #define CLK_MIN CLKFLAG_MIN |
82 | #define CLK_MAX CLKFLAG_MAX | 64 | #define CLK_MAX CLKFLAG_MAX |
83 | #define CLK_MINMAX (CLK_MIN | CLK_MAX) | 65 | #define CLK_MINMAX (CLK_MIN | CLK_MAX) |
84 | #define NR_CLKS P_NR_CLKS | ||
85 | |||
86 | enum { | ||
87 | PLL_0 = 0, | ||
88 | PLL_1, | ||
89 | PLL_2, | ||
90 | PLL_3, | ||
91 | PLL_4, | ||
92 | PLL_5, | ||
93 | PLL_6, | ||
94 | NUM_PLL | ||
95 | }; | ||
96 | |||
97 | enum clkvote_client { | ||
98 | CLKVOTE_ACPUCLK = 0, | ||
99 | CLKVOTE_PMQOS, | ||
100 | CLKVOTE_MAX, | ||
101 | }; | ||
102 | |||
103 | int msm_clock_require_tcxo(unsigned long *reason, int nbits); | ||
104 | int msm_clock_get_name(uint32_t id, char *name, uint32_t size); | ||
105 | int ebi1_clk_set_min_rate(enum clkvote_client client, unsigned long rate); | ||
106 | unsigned long clk_get_max_axi_khz(void); | ||
107 | 66 | ||
108 | #endif | 67 | #endif |
109 | |||