cpufreq: pcc: Remove empty exit() callback
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 4 Jul 2024 06:53:54 +0000 (12:23 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Fri, 5 Jul 2024 06:12:00 +0000 (11:42 +0530)
The exit() callback is optional, remove the empty one.

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

index 6f8b5ea7aeae4f6e3ccdea324172d7eded2d7436..771efbf51a48e3b16b6c2bab53ef4695781e1aea 100644 (file)
@@ -562,18 +562,12 @@ out:
        return result;
 }
 
-static int pcc_cpufreq_cpu_exit(struct cpufreq_policy *policy)
-{
-       return 0;
-}
-
 static struct cpufreq_driver pcc_cpufreq_driver = {
        .flags = CPUFREQ_CONST_LOOPS,
        .get = pcc_get_freq,
        .verify = pcc_cpufreq_verify,
        .target = pcc_cpufreq_target,
        .init = pcc_cpufreq_cpu_init,
-       .exit = pcc_cpufreq_cpu_exit,
        .name = "pcc-cpufreq",
 };