aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorLizhe <[email protected]>2024-07-04 12:23:55 +0530
committerViresh Kumar <[email protected]>2024-07-09 08:45:30 +0530
commitb4b1ddc9dfe997a5f492fa3a36487f8e7a5de30d (patch)
tree38a1f935f78c0e2d21f8f233e0ccbcff1de286cd /include/linux
parentdfd3e8b90b3660b706c3031b0f746377c571b324 (diff)
cpufreq: Make cpufreq_driver->exit() return void
The cpufreq core doesn't check the return type of the exit() callback and there is not much the core can do on failures at that point. Just drop the returned value and make it return void. Signed-off-by: Lizhe <[email protected]> [ Viresh: Reworked the patches to fix all missing changes together. ] Signed-off-by: Viresh Kumar <[email protected]> Reviewed-by: AngeloGioacchino Del Regno <[email protected]> # Mediatek Acked-by: Sudeep Holla <[email protected]> # scpi, scmi, vexpress Acked-by: Mario Limonciello <[email protected]> # amd Reviewed-by: Florian Fainelli <[email protected]> # bmips Acked-by: Rafael J. Wysocki <[email protected]> Acked-by: Kevin Hilman <[email protected]> # omap
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/cpufreq.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h
index 20f7e98ee8af..e3b3face9134 100644
--- a/include/linux/cpufreq.h
+++ b/include/linux/cpufreq.h
@@ -396,7 +396,7 @@ struct cpufreq_driver {
int (*online)(struct cpufreq_policy *policy);
int (*offline)(struct cpufreq_policy *policy);
- int (*exit)(struct cpufreq_policy *policy);
+ void (*exit)(struct cpufreq_policy *policy);
int (*suspend)(struct cpufreq_policy *policy);
int (*resume)(struct cpufreq_policy *policy);