]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
cpufreq: loongson: 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:12 +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/loongson2_cpufreq.c
drivers/cpufreq/loongson3_cpufreq.c

index ed1a6dbad63894f61605897006ffc4a898a2f9e7..39a6c4315a604d43838b9762c767ef87ca21c1cb 100644 (file)
@@ -91,7 +91,6 @@ static struct cpufreq_driver loongson2_cpufreq_driver = {
        .verify = cpufreq_generic_frequency_table_verify,
        .target_index = loongson2_cpufreq_target,
        .get = cpufreq_generic_get,
-       .attr = cpufreq_generic_attr,
 };
 
 static const struct platform_device_id platform_device_ids[] = {
index bd34bf0fafa5a3883a0725f37d2e4711436e749c..ea516b939c44ac52700e8ae9b14573c9e7578a48 100644 (file)
@@ -337,7 +337,6 @@ static struct cpufreq_driver loongson3_cpufreq_driver = {
        .offline = loongson3_cpufreq_cpu_offline,
        .get = loongson3_cpufreq_get,
        .target_index = loongson3_cpufreq_target,
-       .attr = cpufreq_generic_attr,
        .verify = cpufreq_generic_frequency_table_verify,
        .suspend = cpufreq_generic_suspend,
 };