Skip to content

Commit

Permalink
sh: clkfwk: Convert SH-Mobile CPUs to use CLK_ENABLE_ON_INIT.
Browse files Browse the repository at this point in the history
Kill off all of the clk_always_enabled leftovers and use the new flag
directly.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed May 11, 2009
1 parent 4ff29ff commit 154502e
Show file tree
Hide file tree
Showing 7 changed files with 183 additions and 225 deletions.
16 changes: 0 additions & 16 deletions arch/sh/include/asm/clock.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,22 +52,6 @@ void clk_recalc_rate(struct clk *);
int clk_register(struct clk *);
void clk_unregister(struct clk *);

static inline int clk_always_enable(const char *id)
{
struct clk *clk;
int ret;

clk = clk_get(NULL, id);
if (IS_ERR(clk))
return PTR_ERR(clk);

ret = clk_enable(clk);
if (ret)
clk_put(clk);

return ret;
}

/* the exported API, in addition to clk_set_rate */
/**
* clk_set_rate_ex - set the clock rate for a clock source, with additional parameter
Expand Down
Loading

0 comments on commit 154502e

Please sign in to comment.