|
@@ -55,10 +55,16 @@ static long clk_factor_round_rate(struct clk_hw *hw, unsigned long rate,
|
|
|
static int clk_factor_set_rate(struct clk_hw *hw, unsigned long rate,
|
|
|
unsigned long parent_rate)
|
|
|
{
|
|
|
+ /*
|
|
|
+ * We must report success but we can do so unconditionally because
|
|
|
+ * clk_factor_round_rate returns values that ensure this call is a
|
|
|
+ * nop.
|
|
|
+ */
|
|
|
+
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-struct clk_ops clk_fixed_factor_ops = {
|
|
|
+const struct clk_ops clk_fixed_factor_ops = {
|
|
|
.round_rate = clk_factor_round_rate,
|
|
|
.set_rate = clk_factor_set_rate,
|
|
|
.recalc_rate = clk_factor_recalc_rate,
|