From: Paul Mundt Date: Mon, 15 Nov 2010 09:48:25 +0000 (+0900) Subject: sh: clkfwk: Disable init clk op for non-legacy clocks. X-Git-Tag: v2.6.37-rc4~33^2~4^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=549015c36baadc6e67861bba6e927259e34c4d59;p=karo-tx-linux.git 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 --- 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);