diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2008-11-05 07:54:04 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-02-08 12:46:15 -0500 |
commit | ae8fce5c3baf84e319269e67823cf337ed9d359a (patch) | |
tree | bc0fe9f5df030aaaab01208ef054a91c74e315c1 /arch/arm/plat-omap | |
parent | ebb8dca2957f3bb79eea8eec0c7d1c8c3fa9a5be (diff) |
[ARM] omap: remove clk_deny_idle and clk_allow_idle
Nothing makes any use of these functions, so there's little point in
providing them.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/plat-omap')
-rw-r--r-- | arch/arm/plat-omap/clock.c | 28 | ||||
-rw-r--r-- | arch/arm/plat-omap/include/mach/clock.h | 2 | ||||
-rw-r--r-- | arch/arm/plat-omap/include/mach/pm.h | 12 |
3 files changed, 0 insertions, 42 deletions
diff --git a/arch/arm/plat-omap/clock.c b/arch/arm/plat-omap/clock.c index c53205c574d1..7b0400728594 100644 --- a/arch/arm/plat-omap/clock.c +++ b/arch/arm/plat-omap/clock.c | |||
@@ -316,34 +316,6 @@ void clk_unregister(struct clk *clk) | |||
316 | } | 316 | } |
317 | EXPORT_SYMBOL(clk_unregister); | 317 | EXPORT_SYMBOL(clk_unregister); |
318 | 318 | ||
319 | void clk_deny_idle(struct clk *clk) | ||
320 | { | ||
321 | unsigned long flags; | ||
322 | |||
323 | if (clk == NULL || IS_ERR(clk)) | ||
324 | return; | ||
325 | |||
326 | spin_lock_irqsave(&clockfw_lock, flags); | ||
327 | if (arch_clock->clk_deny_idle) | ||
328 | arch_clock->clk_deny_idle(clk); | ||
329 | spin_unlock_irqrestore(&clockfw_lock, flags); | ||
330 | } | ||
331 | EXPORT_SYMBOL(clk_deny_idle); | ||
332 | |||
333 | void clk_allow_idle(struct clk *clk) | ||
334 | { | ||
335 | unsigned long flags; | ||
336 | |||
337 | if (clk == NULL || IS_ERR(clk)) | ||
338 | return; | ||
339 | |||
340 | spin_lock_irqsave(&clockfw_lock, flags); | ||
341 | if (arch_clock->clk_allow_idle) | ||
342 | arch_clock->clk_allow_idle(clk); | ||
343 | spin_unlock_irqrestore(&clockfw_lock, flags); | ||
344 | } | ||
345 | EXPORT_SYMBOL(clk_allow_idle); | ||
346 | |||
347 | void clk_enable_init_clocks(void) | 319 | void clk_enable_init_clocks(void) |
348 | { | 320 | { |
349 | struct clk *clkp; | 321 | struct clk *clkp; |
diff --git a/arch/arm/plat-omap/include/mach/clock.h b/arch/arm/plat-omap/include/mach/clock.h index 6c24835e174d..4831bbdaf014 100644 --- a/arch/arm/plat-omap/include/mach/clock.h +++ b/arch/arm/plat-omap/include/mach/clock.h | |||
@@ -119,8 +119,6 @@ extern void clk_unregister(struct clk *clk); | |||
119 | extern void propagate_rate(struct clk *clk); | 119 | extern void propagate_rate(struct clk *clk); |
120 | extern void recalculate_root_clocks(void); | 120 | extern void recalculate_root_clocks(void); |
121 | extern void followparent_recalc(struct clk * clk); | 121 | extern void followparent_recalc(struct clk * clk); |
122 | extern void clk_allow_idle(struct clk *clk); | ||
123 | extern void clk_deny_idle(struct clk *clk); | ||
124 | extern int clk_get_usecount(struct clk *clk); | 122 | extern int clk_get_usecount(struct clk *clk); |
125 | extern void clk_enable_init_clocks(void); | 123 | extern void clk_enable_init_clocks(void); |
126 | 124 | ||
diff --git a/arch/arm/plat-omap/include/mach/pm.h b/arch/arm/plat-omap/include/mach/pm.h index 2a9c27ad4c37..ca81830b4f86 100644 --- a/arch/arm/plat-omap/include/mach/pm.h +++ b/arch/arm/plat-omap/include/mach/pm.h | |||
@@ -118,18 +118,6 @@ | |||
118 | extern void prevent_idle_sleep(void); | 118 | extern void prevent_idle_sleep(void); |
119 | extern void allow_idle_sleep(void); | 119 | extern void allow_idle_sleep(void); |
120 | 120 | ||
121 | /** | ||
122 | * clk_deny_idle - Prevents the clock from being idled during MPU idle | ||
123 | * @clk: clock signal handle | ||
124 | */ | ||
125 | void clk_deny_idle(struct clk *clk); | ||
126 | |||
127 | /** | ||
128 | * clk_allow_idle - Counters previous clk_deny_idle | ||
129 | * @clk: clock signal handle | ||
130 | */ | ||
131 | void clk_allow_idle(struct clk *clk); | ||
132 | |||
133 | extern void omap_pm_idle(void); | 121 | extern void omap_pm_idle(void); |
134 | extern void omap_pm_suspend(void); | 122 | extern void omap_pm_suspend(void); |
135 | extern void omap730_cpu_suspend(unsigned short, unsigned short); | 123 | extern void omap730_cpu_suspend(unsigned short, unsigned short); |