Skip to content

Commit d0b7c5b

Browse files
committed
clk: actions: owl-composite: convert from owl_divider_helper_round_rate() to divider_determine_rate()
owl_divider_helper_round_rate() is just a wrapper for divider_round_rate(), which is deprecated. Let's migrate to divider_determine_rate() instead so that this deprecated API can be removed. Acked-by: Manivannan Sadhasivam <mani@kernel.org> Signed-off-by: Brian Masney <bmasney@redhat.com>
1 parent 1c8d7af commit d0b7c5b

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

drivers/clk/actions/owl-composite.c

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,10 @@ static int owl_comp_div_determine_rate(struct clk_hw *hw,
5757
struct clk_rate_request *req)
5858
{
5959
struct owl_composite *comp = hw_to_owl_comp(hw);
60-
long rate;
61-
62-
rate = owl_divider_helper_round_rate(&comp->common, &comp->rate.div_hw,
63-
req->rate, &req->best_parent_rate);
64-
if (rate < 0)
65-
return rate;
60+
struct owl_divider_hw *div = &comp->rate.div_hw;
6661

67-
req->rate = rate;
68-
return 0;
62+
return divider_determine_rate(&comp->common.hw, req, div->table,
63+
div->width, div->div_flags);
6964
}
7065

7166
static unsigned long owl_comp_div_recalc_rate(struct clk_hw *hw,

0 commit comments

Comments
 (0)