]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
cpufreq: pmac: 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:13 +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/pmac32-cpufreq.c
drivers/cpufreq/pmac64-cpufreq.c

index 6c9f0888a2a753dfd1bf2581d4bae86dc39d6fe4..a22c22bd693a76cd73b53f19025214f8446c702a 100644 (file)
@@ -439,7 +439,6 @@ static struct cpufreq_driver pmac_cpufreq_driver = {
        .suspend        = pmac_cpufreq_suspend,
        .resume         = pmac_cpufreq_resume,
        .flags          = CPUFREQ_NO_AUTO_DYNAMIC_SWITCHING,
-       .attr           = cpufreq_generic_attr,
        .name           = "powermac",
 };
 
index 74ff6c47df29bd808ca79a6dabd789a77ab91b9e..80897ec8f00e5b9c46baeddfd5189bdc53adeec1 100644 (file)
@@ -332,7 +332,6 @@ static struct cpufreq_driver g5_cpufreq_driver = {
        .verify         = cpufreq_generic_frequency_table_verify,
        .target_index   = g5_cpufreq_target,
        .get            = g5_cpufreq_get_speed,
-       .attr           = cpufreq_generic_attr,
 };