diff options
| author | Brian Masney <bmasney@redhat.com> | 2025-09-03 18:15:04 +0300 |
|---|---|---|
| committer | Brian Masney <bmasney@redhat.com> | 2025-09-08 19:50:41 +0300 |
| commit | e3d1744baa7f81de9e5fd30f26964f27b3a61510 (patch) | |
| tree | 501ebf288f1f2b8d47c542073c612019c6f9412c | |
| parent | 3891c3c70012d634963b0203152aef5eeb079d47 (diff) | |
| download | linux-e3d1744baa7f81de9e5fd30f26964f27b3a61510.tar.xz | |
clk: tegra: periph: divider: convert from round_rate() to determine_rate()
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>
| -rw-r--r-- | drivers/clk/tegra/clk-periph.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/clk/tegra/clk-periph.c b/drivers/clk/tegra/clk-periph.c index fa0cd7bb8ee6..6ebeaa7cb656 100644 --- a/drivers/clk/tegra/clk-periph.c +++ b/drivers/clk/tegra/clk-periph.c @@ -51,16 +51,10 @@ static int clk_periph_determine_rate(struct clk_hw *hw, struct tegra_clk_periph *periph = to_clk_periph(hw); const struct clk_ops *div_ops = periph->div_ops; struct clk_hw *div_hw = &periph->divider.hw; - long rate; __clk_hw_set_clk(div_hw, hw); - rate = div_ops->round_rate(div_hw, req->rate, &req->best_parent_rate); - if (rate < 0) - return rate; - - req->rate = (unsigned long)rate; - return 0; + return div_ops->determine_rate(div_hw, req); } static int clk_periph_set_rate(struct clk_hw *hw, unsigned long rate, |
