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>
This commit is contained in:
parent
1c8d7af61b
commit
d0b7c5bf6c
1 changed files with 3 additions and 8 deletions
|
|
@ -57,15 +57,10 @@ static int owl_comp_div_determine_rate(struct clk_hw *hw,
|
|||
struct clk_rate_request *req)
|
||||
{
|
||||
struct owl_composite *comp = hw_to_owl_comp(hw);
|
||||
long rate;
|
||||
struct owl_divider_hw *div = &comp->rate.div_hw;
|
||||
|
||||
rate = owl_divider_helper_round_rate(&comp->common, &comp->rate.div_hw,
|
||||
req->rate, &req->best_parent_rate);
|
||||
if (rate < 0)
|
||||
return rate;
|
||||
|
||||
req->rate = rate;
|
||||
return 0;
|
||||
return divider_determine_rate(&comp->common.hw, req, div->table,
|
||||
div->width, div->div_flags);
|
||||
}
|
||||
|
||||
static unsigned long owl_comp_div_recalc_rate(struct clk_hw *hw,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue