Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ae8fce5c authored by Russell King's avatar Russell King Committed by Russell King
Browse files

[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: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent ebb8dca2
Loading
Loading
Loading
Loading
+0 −28
Original line number Original line Diff line number Diff line
@@ -316,34 +316,6 @@ void clk_unregister(struct clk *clk)
}
}
EXPORT_SYMBOL(clk_unregister);
EXPORT_SYMBOL(clk_unregister);


void clk_deny_idle(struct clk *clk)
{
	unsigned long flags;

	if (clk == NULL || IS_ERR(clk))
		return;

	spin_lock_irqsave(&clockfw_lock, flags);
	if (arch_clock->clk_deny_idle)
		arch_clock->clk_deny_idle(clk);
	spin_unlock_irqrestore(&clockfw_lock, flags);
}
EXPORT_SYMBOL(clk_deny_idle);

void clk_allow_idle(struct clk *clk)
{
	unsigned long flags;

	if (clk == NULL || IS_ERR(clk))
		return;

	spin_lock_irqsave(&clockfw_lock, flags);
	if (arch_clock->clk_allow_idle)
		arch_clock->clk_allow_idle(clk);
	spin_unlock_irqrestore(&clockfw_lock, flags);
}
EXPORT_SYMBOL(clk_allow_idle);

void clk_enable_init_clocks(void)
void clk_enable_init_clocks(void)
{
{
	struct clk *clkp;
	struct clk *clkp;
+0 −2
Original line number Original line Diff line number Diff line
@@ -119,8 +119,6 @@ extern void clk_unregister(struct clk *clk);
extern void propagate_rate(struct clk *clk);
extern void propagate_rate(struct clk *clk);
extern void recalculate_root_clocks(void);
extern void recalculate_root_clocks(void);
extern void followparent_recalc(struct clk * clk);
extern void followparent_recalc(struct clk * clk);
extern void clk_allow_idle(struct clk *clk);
extern void clk_deny_idle(struct clk *clk);
extern int clk_get_usecount(struct clk *clk);
extern int clk_get_usecount(struct clk *clk);
extern void clk_enable_init_clocks(void);
extern void clk_enable_init_clocks(void);


+0 −12
Original line number Original line Diff line number Diff line
@@ -118,18 +118,6 @@
extern void prevent_idle_sleep(void);
extern void prevent_idle_sleep(void);
extern void allow_idle_sleep(void);
extern void allow_idle_sleep(void);


/**
 * clk_deny_idle - Prevents the clock from being idled during MPU idle
 * @clk: clock signal handle
 */
void clk_deny_idle(struct clk *clk);

/**
 * clk_allow_idle - Counters previous clk_deny_idle
 * @clk: clock signal handle
 */
void clk_allow_idle(struct clk *clk);

extern void omap_pm_idle(void);
extern void omap_pm_idle(void);
extern void omap_pm_suspend(void);
extern void omap_pm_suspend(void);
extern void omap730_cpu_suspend(unsigned short, unsigned short);
extern void omap730_cpu_suspend(unsigned short, unsigned short);