summaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/maple-cpufreq.c
diff options
context:
space:
mode:
authorViresh Kumar2019-07-16 06:06:08 +0200
committerRafael J. Wysocki2019-07-16 10:20:11 +0200
commitc4dcc8a162784c1f827c7f6d8409598f19708fe6 (patch)
tree5563ea21bf256b47edd2cd12e2978d088b60a5f3 /drivers/cpufreq/maple-cpufreq.c
parentcpufreq: imx-cpufreq-dt: Add i.MX8MN support (diff)
downloadkernel-qcow2-linux-c4dcc8a162784c1f827c7f6d8409598f19708fe6.tar.gz
kernel-qcow2-linux-c4dcc8a162784c1f827c7f6d8409598f19708fe6.tar.xz
kernel-qcow2-linux-c4dcc8a162784c1f827c7f6d8409598f19708fe6.zip
cpufreq: Make cpufreq_generic_init() return void
It always returns 0 (success) and its return type should really be void. Over that, many drivers have added error handling code based on its return value, which is not required at all. Change its return type to void and update all the callers. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/maple-cpufreq.c')
-rw-r--r--drivers/cpufreq/maple-cpufreq.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/cpufreq/maple-cpufreq.c b/drivers/cpufreq/maple-cpufreq.c
index a94355723ef8..a03cd3ad170f 100644
--- a/drivers/cpufreq/maple-cpufreq.c
+++ b/drivers/cpufreq/maple-cpufreq.c
@@ -143,7 +143,8 @@ static unsigned int maple_cpufreq_get_speed(unsigned int cpu)
static int maple_cpufreq_cpu_init(struct cpufreq_policy *policy)
{
- return cpufreq_generic_init(policy, maple_cpu_freqs, 12000);
+ cpufreq_generic_init(policy, maple_cpu_freqs, 12000);
+ return 0;
}
static struct cpufreq_driver maple_cpufreq_driver = {