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

clk: mmp: 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 9108620d
...@@ -114,7 +114,7 @@ static void clk_apbc_unprepare(struct clk_hw *hw) ...@@ -114,7 +114,7 @@ static void clk_apbc_unprepare(struct clk_hw *hw)
spin_unlock_irqrestore(apbc->lock, flags); spin_unlock_irqrestore(apbc->lock, flags);
} }
static struct clk_ops clk_apbc_ops = { static const struct clk_ops clk_apbc_ops = {
.prepare = clk_apbc_prepare, .prepare = clk_apbc_prepare,
.unprepare = clk_apbc_unprepare, .unprepare = clk_apbc_unprepare,
}; };
......
...@@ -60,7 +60,7 @@ static void clk_apmu_disable(struct clk_hw *hw) ...@@ -60,7 +60,7 @@ static void clk_apmu_disable(struct clk_hw *hw)
spin_unlock_irqrestore(apmu->lock, flags); spin_unlock_irqrestore(apmu->lock, flags);
} }
static struct clk_ops clk_apmu_ops = { static const struct clk_ops clk_apmu_ops = {
.enable = clk_apmu_enable, .enable = clk_apmu_enable,
.disable = clk_apmu_disable, .disable = clk_apmu_disable,
}; };
......
...@@ -149,7 +149,7 @@ static void clk_factor_init(struct clk_hw *hw) ...@@ -149,7 +149,7 @@ static void clk_factor_init(struct clk_hw *hw)
spin_unlock_irqrestore(factor->lock, flags); spin_unlock_irqrestore(factor->lock, flags);
} }
static struct clk_ops clk_factor_ops = { static const struct clk_ops clk_factor_ops = {
.recalc_rate = clk_factor_recalc_rate, .recalc_rate = clk_factor_recalc_rate,
.round_rate = clk_factor_round_rate, .round_rate = clk_factor_round_rate,
.set_rate = clk_factor_set_rate, .set_rate = clk_factor_set_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