diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-05-11 16:18:13 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-05-11 16:18:13 -0400 |
commit | 154502e160e02dee7b00ec2149762ae5d48e0bb4 (patch) | |
tree | 9ff90db38ca25b7a1a88da887ddc1e522ff8e09b /arch/sh/include | |
parent | 4ff29ff8e8723a41e7defd8bc78a7b16cbf940a2 (diff) |
sh: clkfwk: Convert SH-Mobile CPUs to use CLK_ENABLE_ON_INIT.
Kill off all of the clk_always_enabled leftovers and use the new flag
directly.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include')
-rw-r--r-- | arch/sh/include/asm/clock.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/arch/sh/include/asm/clock.h b/arch/sh/include/asm/clock.h index 246f9ebbed23..e9fced9bd8f5 100644 --- a/arch/sh/include/asm/clock.h +++ b/arch/sh/include/asm/clock.h | |||
@@ -52,22 +52,6 @@ void clk_recalc_rate(struct clk *); | |||
52 | int clk_register(struct clk *); | 52 | int clk_register(struct clk *); |
53 | void clk_unregister(struct clk *); | 53 | void clk_unregister(struct clk *); |
54 | 54 | ||
55 | static inline int clk_always_enable(const char *id) | ||
56 | { | ||
57 | struct clk *clk; | ||
58 | int ret; | ||
59 | |||
60 | clk = clk_get(NULL, id); | ||
61 | if (IS_ERR(clk)) | ||
62 | return PTR_ERR(clk); | ||
63 | |||
64 | ret = clk_enable(clk); | ||
65 | if (ret) | ||
66 | clk_put(clk); | ||
67 | |||
68 | return ret; | ||
69 | } | ||
70 | |||
71 | /* the exported API, in addition to clk_set_rate */ | 55 | /* the exported API, in addition to clk_set_rate */ |
72 | /** | 56 | /** |
73 | * clk_set_rate_ex - set the clock rate for a clock source, with additional parameter | 57 | * clk_set_rate_ex - set the clock rate for a clock source, with additional parameter |