Source
64
64
65
65
return val & s2mps11->mask;
66
66
}
67
67
68
68
static unsigned long s2mps11_clk_recalc_rate(struct clk_hw *hw,
69
69
unsigned long parent_rate)
70
70
{
71
71
return 32768;
72
72
}
73
73
74
-
static struct clk_ops s2mps11_clk_ops = {
74
+
static const struct clk_ops s2mps11_clk_ops = {
75
75
.prepare = s2mps11_clk_prepare,
76
76
.unprepare = s2mps11_clk_unprepare,
77
77
.is_prepared = s2mps11_clk_is_prepared,
78
78
.recalc_rate = s2mps11_clk_recalc_rate,
79
79
};
80
80
81
81
/* This s2mps11_clks_init tructure is common to s2mps11, s2mps13 and s2mps14 */
82
82
static struct clk_init_data s2mps11_clks_init[S2MPS11_CLKS_NUM] = {
83
83
[S2MPS11_CLK_AP] = {
84
84
.name = "s2mps11_ap",