浏览代码

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>
Paul Mundt 14 年之前
父节点
当前提交
549015c36b
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      include/linux/sh_clk.h

+ 2 - 0
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);