[PATCH] cpufreq: Make cpufreq_unregister_driver() return void
AngeloGioacchino Del Regno
angelogioacchino.delregno at collabora.com
Wed Feb 8 05:12:09 PST 2023
Il 07/02/23 20:59, Uwe Kleine-König ha scritto:
> 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 at pengutronix.de>
For MTK and generic part:
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno at collabora.com>
More information about the Linux-mediatek
mailing list