diff mbox series

[2/4] cpufreq: loongson2: Remove empty exit() callback

Message ID f09ee1fa731db0c1565b5d4b919d54d5f258957b.1720075640.git.viresh.kumar@linaro.org (mailing list archive)
State Handled Elsewhere
Headers show
Series cpufreq: Make cpufreq_driver->exit() return void | expand

Commit Message

Viresh Kumar July 4, 2024, 6:53 a.m. UTC
The exit() callback is optional, remove the empty one.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
---
 drivers/cpufreq/loongson2_cpufreq.c | 6 ------
 1 file changed, 6 deletions(-)

Comments

Huacai Chen July 4, 2024, 9:36 a.m. UTC | #1
Reviewed-by: Huacai Chen <chenhuacai@loongson.cn>

On Thu, Jul 4, 2024 at 2:56 PM Viresh Kumar <viresh.kumar@linaro.org> wrote:
>
> The exit() callback is optional, remove the empty one.
>
> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
> ---
>  drivers/cpufreq/loongson2_cpufreq.c | 6 ------
>  1 file changed, 6 deletions(-)
>
> diff --git a/drivers/cpufreq/loongson2_cpufreq.c b/drivers/cpufreq/loongson2_cpufreq.c
> index afc59b292153..6a8e97896d38 100644
> --- a/drivers/cpufreq/loongson2_cpufreq.c
> +++ b/drivers/cpufreq/loongson2_cpufreq.c
> @@ -85,18 +85,12 @@ static int loongson2_cpufreq_cpu_init(struct cpufreq_policy *policy)
>         return 0;
>  }
>
> -static int loongson2_cpufreq_exit(struct cpufreq_policy *policy)
> -{
> -       return 0;
> -}
> -
>  static struct cpufreq_driver loongson2_cpufreq_driver = {
>         .name = "loongson2",
>         .init = loongson2_cpufreq_cpu_init,
>         .verify = cpufreq_generic_frequency_table_verify,
>         .target_index = loongson2_cpufreq_target,
>         .get = cpufreq_generic_get,
> -       .exit = loongson2_cpufreq_exit,
>         .attr = cpufreq_generic_attr,
>  };
>
> --
> 2.31.1.272.g89b43f80a514
>
>
diff mbox series

Patch

diff --git a/drivers/cpufreq/loongson2_cpufreq.c b/drivers/cpufreq/loongson2_cpufreq.c
index afc59b292153..6a8e97896d38 100644
--- a/drivers/cpufreq/loongson2_cpufreq.c
+++ b/drivers/cpufreq/loongson2_cpufreq.c
@@ -85,18 +85,12 @@  static int loongson2_cpufreq_cpu_init(struct cpufreq_policy *policy)
 	return 0;
 }
 
-static int loongson2_cpufreq_exit(struct cpufreq_policy *policy)
-{
-	return 0;
-}
-
 static struct cpufreq_driver loongson2_cpufreq_driver = {
 	.name = "loongson2",
 	.init = loongson2_cpufreq_cpu_init,
 	.verify = cpufreq_generic_frequency_table_verify,
 	.target_index = loongson2_cpufreq_target,
 	.get = cpufreq_generic_get,
-	.exit = loongson2_cpufreq_exit,
 	.attr = cpufreq_generic_attr,
 };