Skip to content

Commit

Permalink
sh: clkfwk: Disable init clk op for non-legacy clocks.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Mundt committed Nov 15, 2010
1 parent 35a96c7 commit 549015c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/linux/sh_clk.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 549015c

Please sign in to comment.