diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2023-02-07 20:59:09 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-02-09 20:19:18 +0100 |
commit | dd329e1e21b54c73f58a440b6164d04d8a7fc542 (patch) | |
tree | a0b3ce71c44bcd24097615cb3778942207e8e5fa /drivers/cpufreq/cpufreq_ondemand.h | |
parent | ced3960aa0f09329675209c6004bfc4025cc1f26 (diff) | |
download | lwn-dd329e1e21b54c73f58a440b6164d04d8a7fc542.tar.gz lwn-dd329e1e21b54c73f58a440b6164d04d8a7fc542.zip |
cpufreq: Make cpufreq_unregister_driver() return void
All but a few drivers ignore the return value of
cpufreq_unregister_driver(). Those few that don't only call it after
cpufreq_register_driver() succeeded, in which case the call doesn't
fail.
Make the function return no value and add a WARN_ON for the case that
the function is called in an invalid situation (i.e. without a previous
successful call to cpufreq_register_driver()).
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Florian Fainelli <f.fainelli@gmail.com> # brcmstb-avs-cpufreq.c
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/cpufreq_ondemand.h')
0 files changed, 0 insertions, 0 deletions