diff options
author | Paul Mundt <lethal@linux-sh.org> | 2010-11-15 04:48:25 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-11-15 04:48:25 -0500 |
commit | 549015c36baadc6e67861bba6e927259e34c4d59 (patch) | |
tree | 6f83a18ec81461fd6b68b3e7dd86f23c7619c1ee | |
parent | 35a96c739fd7624b8edff990a74b86b5a85342da (diff) |
sh: clkfwk: Disable init clk op for non-legacy clocks.
Presently it's only legacy users that are using this clock op, guard it
with an ifdef to ensure that no new users start using it.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
-rw-r--r-- | include/linux/sh_clk.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/sh_clk.h b/include/linux/sh_clk.h index 038475a2092f..9a52f72527dc 100644 --- a/include/linux/sh_clk.h +++ b/include/linux/sh_clk.h | |||
@@ -19,7 +19,9 @@ struct clk_mapping { | |||
19 | }; | 19 | }; |
20 | 20 | ||
21 | struct clk_ops { | 21 | struct clk_ops { |
22 | #ifdef CONFIG_SH_CLK_CPG_LEGACY | ||
22 | void (*init)(struct clk *clk); | 23 | void (*init)(struct clk *clk); |
24 | #endif | ||
23 | int (*enable)(struct clk *clk); | 25 | int (*enable)(struct clk *clk); |
24 | void (*disable)(struct clk *clk); | 26 | void (*disable)(struct clk *clk); |
25 | unsigned long (*recalc)(struct clk *clk); | 27 | unsigned long (*recalc)(struct clk *clk); |