]> git.ipfire.org Git - thirdparty/linux.git/commit
clk: stm32: stm32-core: convert from divider_ro_round_rate() to divider_ro_determine_...
authorBrian Masney <bmasney@redhat.com>
Thu, 8 Jan 2026 21:16:37 +0000 (16:16 -0500)
committerBrian Masney <bmasney@redhat.com>
Thu, 22 Jan 2026 15:48:26 +0000 (10:48 -0500)
commit6587c9dacc89ad7014bf601fe851955429f13230
tree03f5d238431a6d07c6580ad109a3f20b77aec367
parentf78fb9422980ceeb340fa3a2e370ae8845798ec7
clk: stm32: stm32-core: convert from divider_ro_round_rate() to divider_ro_determine_rate()

The divider_ro_round_rate() function is now deprecated, so let's migrate
to divider_ro_determine_rate() instead so that this deprecated API can
be removed.

Note that when the main function itself was migrated to use
determine_rate, this was mistakenly converted to:

    req->rate = divider_round_rate(...)

This is invalid in the case when an error occurs since it can set the
rate to a negative value.

Fixes: cd1cb38836c0 ("clk: stm32: stm32-core: convert from round_rate() to determine_rate()")
Signed-off-by: Brian Masney <bmasney@redhat.com>
drivers/clk/stm32/clk-stm32-core.c