diff options
author | Adrian Bunk <bunk@kernel.org> | 2008-06-17 20:36:50 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-07-28 05:10:30 -0400 |
commit | 4c1cfab1e0f9a41246cfdcca78f3700fb67f0a5c (patch) | |
tree | 502610786625ef7fe15d89e4226cd05b6dcd2d44 /arch/sh/kernel/cpu/clock.c | |
parent | 62410034e79d9249647d1fe6f6f35a06b3747e68 (diff) |
sh/kernel/ cleanups
This patch contains the following cleanups:
- make the following needlessly global code static:
- cf-enabler.c: cf_init()
- cpu/clock.c: __clk_enable()
- cpu/clock.c: __clk_disable()
- process_32.c: default_idle()
- time_32.c: struct clocksource_sh
- timers/timer-tmu.c: struct tmu_timer_ops
- remove the following unused functions (no CONFIG_BLK_DEV_FD on sh):
- process_{32,64}.c: disable_hlt()
- process_{32,64}.c: enable_hlt()
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/cpu/clock.c')
-rw-r--r-- | arch/sh/kernel/cpu/clock.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/sh/kernel/cpu/clock.c b/arch/sh/kernel/cpu/clock.c index b5f1e23ed57c..73334c689e9d 100644 --- a/arch/sh/kernel/cpu/clock.c +++ b/arch/sh/kernel/cpu/clock.c | |||
@@ -88,7 +88,7 @@ static void propagate_rate(struct clk *clk) | |||
88 | } | 88 | } |
89 | } | 89 | } |
90 | 90 | ||
91 | int __clk_enable(struct clk *clk) | 91 | static int __clk_enable(struct clk *clk) |
92 | { | 92 | { |
93 | /* | 93 | /* |
94 | * See if this is the first time we're enabling the clock, some | 94 | * See if this is the first time we're enabling the clock, some |
@@ -111,7 +111,6 @@ int __clk_enable(struct clk *clk) | |||
111 | 111 | ||
112 | return 0; | 112 | return 0; |
113 | } | 113 | } |
114 | EXPORT_SYMBOL_GPL(__clk_enable); | ||
115 | 114 | ||
116 | int clk_enable(struct clk *clk) | 115 | int clk_enable(struct clk *clk) |
117 | { | 116 | { |
@@ -131,7 +130,7 @@ static void clk_kref_release(struct kref *kref) | |||
131 | /* Nothing to do */ | 130 | /* Nothing to do */ |
132 | } | 131 | } |
133 | 132 | ||
134 | void __clk_disable(struct clk *clk) | 133 | static void __clk_disable(struct clk *clk) |
135 | { | 134 | { |
136 | int count = kref_put(&clk->kref, clk_kref_release); | 135 | int count = kref_put(&clk->kref, clk_kref_release); |
137 | 136 | ||
@@ -143,7 +142,6 @@ void __clk_disable(struct clk *clk) | |||
143 | clk->ops->disable(clk); | 142 | clk->ops->disable(clk); |
144 | } | 143 | } |
145 | } | 144 | } |
146 | EXPORT_SYMBOL_GPL(__clk_disable); | ||
147 | 145 | ||
148 | void clk_disable(struct clk *clk) | 146 | void clk_disable(struct clk *clk) |
149 | { | 147 | { |