clk_mux_ops shouldn't be changed, so make it const. Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> --- drivers/clk/clk-mux.c | 2 +- include/linux/clk.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/clk-mux.c b/drivers/clk/clk-mux.c index 981f3aa853..bd5b50ad18 100644 --- a/drivers/clk/clk-mux.c +++ b/drivers/clk/clk-mux.c @@ -41,7 +41,7 @@ static int clk_mux_set_parent(struct clk_hw *hw, u8 idx) return 0; } -struct clk_ops clk_mux_ops = { +const struct clk_ops clk_mux_ops = { .set_rate = clk_parent_set_rate, .round_rate = clk_parent_round_rate, .get_parent = clk_mux_get_parent, diff --git a/include/linux/clk.h b/include/linux/clk.h index e1db903d74..ede2b676fe 100644 --- a/include/linux/clk.h +++ b/include/linux/clk.h @@ -503,7 +503,7 @@ struct clk_mux { #define to_clk_mux(_hw) container_of(_hw, struct clk_mux, hw) -extern struct clk_ops clk_mux_ops; +extern const struct clk_ops clk_mux_ops; struct clk *clk_mux_alloc(const char *name, unsigned clk_flags, void __iomem *reg, u8 shift, u8 width, -- 2.29.2 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox