diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2019-07-16 06:06:08 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-07-16 10:20:11 +0200 |
commit | c4dcc8a162784c1f827c7f6d8409598f19708fe6 (patch) | |
tree | 5563ea21bf256b47edd2cd12e2978d088b60a5f3 /drivers/cpufreq/davinci-cpufreq.c | |
parent | cpufreq: imx-cpufreq-dt: Add i.MX8MN support (diff) | |
download | linux-c4dcc8a162784c1f827c7f6d8409598f19708fe6.tar.xz 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/davinci-cpufreq.c')
-rw-r--r-- | drivers/cpufreq/davinci-cpufreq.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/cpufreq/davinci-cpufreq.c b/drivers/cpufreq/davinci-cpufreq.c index 940fe85db97a..664fa4ab9d1c 100644 --- a/drivers/cpufreq/davinci-cpufreq.c +++ b/drivers/cpufreq/davinci-cpufreq.c @@ -93,7 +93,8 @@ static int davinci_cpu_init(struct cpufreq_policy *policy) * Setting the latency to 2000 us to accommodate addition of drivers * to pre/post change notification list. */ - return cpufreq_generic_init(policy, freq_table, 2000 * 1000); + cpufreq_generic_init(policy, freq_table, 2000 * 1000); + return 0; } static struct cpufreq_driver davinci_driver = { |