clk: add "const" for clk_ops of basic clks
The clk_ops of basic clks should have "const" to match the definition in "struct clk" and clk_register prototype. Signed-off-by: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Mike Turquette <mturquette@linaro.org>
This commit is contained in:

committed by
Mike Turquette

parent
c0d2530c03
commit
822c250e15
@@ -98,7 +98,7 @@ static int clk_gate_is_enabled(struct clk_hw *hw)
|
||||
return reg ? 1 : 0;
|
||||
}
|
||||
|
||||
struct clk_ops clk_gate_ops = {
|
||||
const struct clk_ops clk_gate_ops = {
|
||||
.enable = clk_gate_enable,
|
||||
.disable = clk_gate_disable,
|
||||
.is_enabled = clk_gate_is_enabled,
|
||||
|
Reference in New Issue
Block a user