pmdomain: mediatek: airoha: use clk_determine_rate_noop()

Drop the driver-specific empty determine_rate() function and use the new
shared clk_determine_rate_noop() helper.

Acked-by: Ulf Hansson <ulfh@kernel.org>
Signed-off-by: Brian Masney <bmasney@redhat.com>
This commit is contained in:
Brian Masney 2026-05-05 20:49:10 -04:00
parent a621e3dfd4
commit b37966e116

View File

@ -21,12 +21,6 @@ struct airoha_cpu_pmdomain_priv {
struct generic_pm_domain pd;
};
static int airoha_cpu_pmdomain_clk_determine_rate(struct clk_hw *hw,
struct clk_rate_request *req)
{
return 0;
}
static unsigned long airoha_cpu_pmdomain_clk_get(struct clk_hw *hw,
unsigned long parent_rate)
{
@ -48,7 +42,7 @@ static int airoha_cpu_pmdomain_clk_is_enabled(struct clk_hw *hw)
static const struct clk_ops airoha_cpu_pmdomain_clk_ops = {
.recalc_rate = airoha_cpu_pmdomain_clk_get,
.is_enabled = airoha_cpu_pmdomain_clk_is_enabled,
.determine_rate = airoha_cpu_pmdomain_clk_determine_rate,
.determine_rate = clk_determine_rate_noop,
};
static int airoha_cpu_pmdomain_set_performance_state(struct generic_pm_domain *domain,