]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
clk: imx: composite-8m: remove round_rate() in favor of determine_rate()
authorBrian Masney <bmasney@redhat.com>
Thu, 10 Jul 2025 21:10:33 +0000 (17:10 -0400)
committerStephen Boyd <sboyd@kernel.org>
Thu, 24 Jul 2025 22:16:35 +0000 (15:16 -0700)
This driver implements both the determine_rate() and round_rate() clk
ops, and the round_rate() clk ops is deprecated. When both are defined,
clk_core_determine_round_nolock() from the clk core will only use the
determine_rate() clk ops, so let's remove the round_rate() clk ops since
it's unused.

Signed-off-by: Brian Masney <bmasney@redhat.com>
Link: https://lore.kernel.org/r/20250710-clk-imx-round-rate-v1-1-5726f98e6d8d@redhat.com
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/imx/clk-composite-8m.c

index f187582ba49196e3cee2b5dbaba9bdd9b091bb40..1467d0a1b9341bc4b0a40591bca00392eabf7cfb 100644 (file)
@@ -73,21 +73,6 @@ static int imx8m_clk_composite_compute_dividers(unsigned long rate,
        return ret;
 }
 
-static long imx8m_clk_composite_divider_round_rate(struct clk_hw *hw,
-                                               unsigned long rate,
-                                               unsigned long *prate)
-{
-       int prediv_value;
-       int div_value;
-
-       imx8m_clk_composite_compute_dividers(rate, *prate,
-                                               &prediv_value, &div_value);
-       rate = DIV_ROUND_UP(*prate, prediv_value);
-
-       return DIV_ROUND_UP(rate, div_value);
-
-}
-
 static int imx8m_clk_composite_divider_set_rate(struct clk_hw *hw,
                                        unsigned long rate,
                                        unsigned long parent_rate)
@@ -153,7 +138,6 @@ static int imx8m_divider_determine_rate(struct clk_hw *hw,
 
 static const struct clk_ops imx8m_clk_composite_divider_ops = {
        .recalc_rate = imx8m_clk_composite_divider_recalc_rate,
-       .round_rate = imx8m_clk_composite_divider_round_rate,
        .set_rate = imx8m_clk_composite_divider_set_rate,
        .determine_rate = imx8m_divider_determine_rate,
 };