diff options
| author | Brian Masney <bmasney@redhat.com> | 2026-05-05 20:49:07 -0400 |
|---|---|---|
| committer | Brian Masney <bmasney@redhat.com> | 2026-06-29 17:53:16 -0400 |
| commit | 6dae6cf18bc3e5e5b09ea46c9149f6031afeb7e9 (patch) | |
| tree | 8aa13722df7293eef783b2a78819155a651990b6 | |
| parent | d0f1d7ed5fa97c364f3abd54a35478d6188b28dc (diff) | |
clk: scpi: use clk_determine_rate_noop()
Drop the driver-specific empty determine_rate() function and use the new
shared clk_determine_rate_noop() helper.
Signed-off-by: Brian Masney <bmasney@redhat.com>
| -rw-r--r-- | drivers/clk/clk-scpi.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/clk/clk-scpi.c b/drivers/clk/clk-scpi.c index 24cee7c9fda6..2328d2abf6d8 100644 --- a/drivers/clk/clk-scpi.c +++ b/drivers/clk/clk-scpi.c @@ -32,18 +32,6 @@ static unsigned long scpi_clk_recalc_rate(struct clk_hw *hw, return clk->scpi_ops->clk_get_val(clk->id); } -static int scpi_clk_determine_rate(struct clk_hw *hw, - struct clk_rate_request *req) -{ - /* - * We can't figure out what rate it will be, so just return the - * rate back to the caller. scpi_clk_recalc_rate() will be called - * after the rate is set and we'll know what rate the clock is - * running at then. - */ - return 0; -} - static int scpi_clk_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) { @@ -54,7 +42,7 @@ static int scpi_clk_set_rate(struct clk_hw *hw, unsigned long rate, static const struct clk_ops scpi_clk_ops = { .recalc_rate = scpi_clk_recalc_rate, - .determine_rate = scpi_clk_determine_rate, + .determine_rate = clk_determine_rate_noop, .set_rate = scpi_clk_set_rate, }; |
