]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
cpufreq: dt: Stop setting cpufreq_driver->attr field
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 22 Jan 2025 10:53:51 +0000 (16:23 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Fri, 7 Feb 2025 04:15:11 +0000 (09:45 +0530)
The cpufreq core now handles this for basic attributes, including boost
frequencies, the driver can skip setting them.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Rafael J. Wysocki <rafael@kernel.org>
drivers/cpufreq/cpufreq-dt.c

index 3a7c3372bda751fd24177ae0408196c8c0a36076..072ccf0c2e41c6d48291872dad8e1065a3d674f6 100644 (file)
@@ -36,12 +36,6 @@ struct private_data {
 
 static LIST_HEAD(priv_list);
 
-static struct freq_attr *cpufreq_dt_attr[] = {
-       &cpufreq_freq_attr_scaling_available_freqs,
-       NULL,   /* Extra space for boost-attr if required */
-       NULL,
-};
-
 static struct private_data *cpufreq_dt_find_data(int cpu)
 {
        struct private_data *priv;
@@ -126,7 +120,6 @@ static int cpufreq_init(struct cpufreq_policy *policy)
                ret = cpufreq_enable_boost_support();
                if (ret)
                        goto out_clk_put;
-               cpufreq_dt_attr[1] = &cpufreq_freq_attr_scaling_boost_freqs;
        }
 
        return 0;
@@ -169,7 +162,6 @@ static struct cpufreq_driver dt_cpufreq_driver = {
        .offline = cpufreq_offline,
        .register_em = cpufreq_register_em_with_opp,
        .name = "cpufreq-dt",
-       .attr = cpufreq_dt_attr,
        .suspend = cpufreq_generic_suspend,
 };