cpufreq: nforce2: Remove empty exit() callback

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>
This commit is contained in:
Viresh Kumar 2024-07-04 12:23:52 +05:30
parent ce84b7beeb
commit bf8a44c07b

View File

@ -359,11 +359,6 @@ static int nforce2_cpu_init(struct cpufreq_policy *policy)
return 0; return 0;
} }
static int nforce2_cpu_exit(struct cpufreq_policy *policy)
{
return 0;
}
static struct cpufreq_driver nforce2_driver = { static struct cpufreq_driver nforce2_driver = {
.name = "nforce2", .name = "nforce2",
.flags = CPUFREQ_NO_AUTO_DYNAMIC_SWITCHING, .flags = CPUFREQ_NO_AUTO_DYNAMIC_SWITCHING,
@ -371,7 +366,6 @@ static struct cpufreq_driver nforce2_driver = {
.target = nforce2_target, .target = nforce2_target,
.get = nforce2_get, .get = nforce2_get,
.init = nforce2_cpu_init, .init = nforce2_cpu_init,
.exit = nforce2_cpu_exit,
}; };
#ifdef MODULE #ifdef MODULE