aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2008-11-05 07:54:04 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2009-02-08 12:46:15 -0500
commitae8fce5c3baf84e319269e67823cf337ed9d359a (patch)
treebc0fe9f5df030aaaab01208ef054a91c74e315c1 /arch/arm/plat-omap
parentebb8dca2957f3bb79eea8eec0c7d1c8c3fa9a5be (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.c28
-rw-r--r--arch/arm/plat-omap/include/mach/clock.h2
-rw-r--r--arch/arm/plat-omap/include/mach/pm.h12
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}
317EXPORT_SYMBOL(clk_unregister); 317EXPORT_SYMBOL(clk_unregister);
318 318
319void 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}
331EXPORT_SYMBOL(clk_deny_idle);
332
333void 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}
345EXPORT_SYMBOL(clk_allow_idle);
346
347void clk_enable_init_clocks(void) 319void 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);
119extern void propagate_rate(struct clk *clk); 119extern void propagate_rate(struct clk *clk);
120extern void recalculate_root_clocks(void); 120extern void recalculate_root_clocks(void);
121extern void followparent_recalc(struct clk * clk); 121extern void followparent_recalc(struct clk * clk);
122extern void clk_allow_idle(struct clk *clk);
123extern void clk_deny_idle(struct clk *clk);
124extern int clk_get_usecount(struct clk *clk); 122extern int clk_get_usecount(struct clk *clk);
125extern void clk_enable_init_clocks(void); 123extern 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 @@
118extern void prevent_idle_sleep(void); 118extern void prevent_idle_sleep(void);
119extern void allow_idle_sleep(void); 119extern 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 */
125void clk_deny_idle(struct clk *clk);
126
127/**
128 * clk_allow_idle - Counters previous clk_deny_idle
129 * @clk: clock signal handle
130 */
131void clk_allow_idle(struct clk *clk);
132
133extern void omap_pm_idle(void); 121extern void omap_pm_idle(void);
134extern void omap_pm_suspend(void); 122extern void omap_pm_suspend(void);
135extern void omap730_cpu_suspend(unsigned short, unsigned short); 123extern void omap730_cpu_suspend(unsigned short, unsigned short);