aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sh_clk.h
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2010-11-15 18:48:25 +0900
committerPaul Mundt <lethal@linux-sh.org>2010-11-15 18:48:25 +0900
commit549015c36baadc6e67861bba6e927259e34c4d59 (patch)
tree6f83a18ec81461fd6b68b3e7dd86f23c7619c1ee /include/linux/sh_clk.h
parentsh: clkfwk: Kill off now unused algo_id in set_rate op. (diff)
downloadlinux-dev-549015c36baadc6e67861bba6e927259e34c4d59.tar.xz
linux-dev-549015c36baadc6e67861bba6e927259e34c4d59.zip
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>
Diffstat (limited to 'include/linux/sh_clk.h')
-rw-r--r--include/linux/sh_clk.h2
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 {
};
struct clk_ops {
+#ifdef CONFIG_SH_CLK_CPG_LEGACY
void (*init)(struct clk *clk);
+#endif
int (*enable)(struct clk *clk);
void (*disable)(struct clk *clk);
unsigned long (*recalc)(struct clk *clk);