From: Bhumika Goyal Date: Tue, 22 Aug 2017 14:06:26 +0000 (+0530) Subject: clk: versatile: make clk_ops const X-Git-Tag: Ubuntu-5.2.0-15.16~5994^2~23 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=2c606871f3d8e3cfd4a079081a7cd9aabdbba99a;p=mirror_ubuntu-eoan-kernel.git clk: versatile: make clk_ops const Make this const as it is only stored in the const field of a clk_init_data structure. Signed-off-by: Bhumika Goyal Acked-by: Liviu Dudau Signed-off-by: Stephen Boyd --- diff --git a/drivers/clk/versatile/clk-vexpress-osc.c b/drivers/clk/versatile/clk-vexpress-osc.c index 7e5add7d7752..e7a868b83fe5 100644 --- a/drivers/clk/versatile/clk-vexpress-osc.c +++ b/drivers/clk/versatile/clk-vexpress-osc.c @@ -61,7 +61,7 @@ static int vexpress_osc_set_rate(struct clk_hw *hw, unsigned long rate, return regmap_write(osc->reg, 0, rate); } -static struct clk_ops vexpress_osc_ops = { +static const struct clk_ops vexpress_osc_ops = { .recalc_rate = vexpress_osc_recalc_rate, .round_rate = vexpress_osc_round_rate, .set_rate = vexpress_osc_set_rate,