mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 02:39:48 +00:00
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>
This commit is contained in:
parent
35a96c739f
commit
549015c36b
1 changed files with 2 additions and 0 deletions
|
@ -19,7 +19,9 @@ struct clk_mapping {
|
||||||
};
|
};
|
||||||
|
|
||||||
struct clk_ops {
|
struct clk_ops {
|
||||||
|
#ifdef CONFIG_SH_CLK_CPG_LEGACY
|
||||||
void (*init)(struct clk *clk);
|
void (*init)(struct clk *clk);
|
||||||
|
#endif
|
||||||
int (*enable)(struct clk *clk);
|
int (*enable)(struct clk *clk);
|
||||||
void (*disable)(struct clk *clk);
|
void (*disable)(struct clk *clk);
|
||||||
unsigned long (*recalc)(struct clk *clk);
|
unsigned long (*recalc)(struct clk *clk);
|
||||||
|
|
Loading…
Reference in a new issue