Commit fa1da981 authored by Bhumika Goyal's avatar Bhumika Goyal Committed by Stephen Boyd

clk: imx: make clk_ops const

Make these const as they are only stored in the const field of a
clk_init_data structure.
Signed-off-by: default avatarBhumika Goyal <bhumirks@gmail.com>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent e90a7da4
...@@ -72,7 +72,7 @@ static int clk_busy_divider_set_rate(struct clk_hw *hw, unsigned long rate, ...@@ -72,7 +72,7 @@ static int clk_busy_divider_set_rate(struct clk_hw *hw, unsigned long rate,
return ret; return ret;
} }
static struct clk_ops clk_busy_divider_ops = { static const struct clk_ops clk_busy_divider_ops = {
.recalc_rate = clk_busy_divider_recalc_rate, .recalc_rate = clk_busy_divider_recalc_rate,
.round_rate = clk_busy_divider_round_rate, .round_rate = clk_busy_divider_round_rate,
.set_rate = clk_busy_divider_set_rate, .set_rate = clk_busy_divider_set_rate,
...@@ -147,7 +147,7 @@ static int clk_busy_mux_set_parent(struct clk_hw *hw, u8 index) ...@@ -147,7 +147,7 @@ static int clk_busy_mux_set_parent(struct clk_hw *hw, u8 index)
return ret; return ret;
} }
static struct clk_ops clk_busy_mux_ops = { static const struct clk_ops clk_busy_mux_ops = {
.get_parent = clk_busy_mux_get_parent, .get_parent = clk_busy_mux_get_parent,
.set_parent = clk_busy_mux_set_parent, .set_parent = clk_busy_mux_set_parent,
}; };
......
...@@ -118,7 +118,7 @@ static void clk_gate2_disable_unused(struct clk_hw *hw) ...@@ -118,7 +118,7 @@ static void clk_gate2_disable_unused(struct clk_hw *hw)
spin_unlock_irqrestore(gate->lock, flags); spin_unlock_irqrestore(gate->lock, flags);
} }
static struct clk_ops clk_gate2_ops = { static const struct clk_ops clk_gate2_ops = {
.enable = clk_gate2_enable, .enable = clk_gate2_enable,
.disable = clk_gate2_disable, .disable = clk_gate2_disable,
.disable_unused = clk_gate2_disable_unused, .disable_unused = clk_gate2_disable_unused,
......
...@@ -106,7 +106,7 @@ static unsigned long clk_pllv1_recalc_rate(struct clk_hw *hw, ...@@ -106,7 +106,7 @@ static unsigned long clk_pllv1_recalc_rate(struct clk_hw *hw,
return ull; return ull;
} }
static struct clk_ops clk_pllv1_ops = { static const struct clk_ops clk_pllv1_ops = {
.recalc_rate = clk_pllv1_recalc_rate, .recalc_rate = clk_pllv1_recalc_rate,
}; };
......
...@@ -226,7 +226,7 @@ static void clk_pllv2_unprepare(struct clk_hw *hw) ...@@ -226,7 +226,7 @@ static void clk_pllv2_unprepare(struct clk_hw *hw)
__raw_writel(reg, pllbase + MXC_PLL_DP_CTL); __raw_writel(reg, pllbase + MXC_PLL_DP_CTL);
} }
static struct clk_ops clk_pllv2_ops = { static const struct clk_ops clk_pllv2_ops = {
.prepare = clk_pllv2_prepare, .prepare = clk_pllv2_prepare,
.unprepare = clk_pllv2_unprepare, .unprepare = clk_pllv2_unprepare,
.recalc_rate = clk_pllv2_recalc_rate, .recalc_rate = clk_pllv2_recalc_rate,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment