]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
clk: tegra: super: convert from round_rate() to determine_rate()
authorBrian Masney <bmasney@redhat.com>
Wed, 3 Sep 2025 15:15:06 +0000 (11:15 -0400)
committerBrian Masney <bmasney@redhat.com>
Mon, 8 Sep 2025 16:50:47 +0000 (12:50 -0400)
The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate().

Note that this change also requires the same migration to
drivers/clk/tegra/clk-divider.c.

Signed-off-by: Brian Masney <bmasney@redhat.com>
drivers/clk/tegra/clk-super.c

index 7ec47942720c5aa43f35107369b42804f4847b97..51fb356e770eeaea9d26ef48f298dbc00e164732 100644 (file)
@@ -147,17 +147,10 @@ static int clk_super_determine_rate(struct clk_hw *hw,
 {
        struct tegra_clk_super_mux *super = to_clk_super_mux(hw);
        struct clk_hw *div_hw = &super->frac_div.hw;
-       unsigned long rate;
 
        __clk_hw_set_clk(div_hw, hw);
 
-       rate = super->div_ops->round_rate(div_hw, req->rate,
-                                         &req->best_parent_rate);
-       if (rate < 0)
-               return rate;
-
-       req->rate = rate;
-       return 0;
+       return super->div_ops->determine_rate(div_hw, req);
 }
 
 static unsigned long clk_super_recalc_rate(struct clk_hw *hw,