Skip to content
Commit af483c37 authored by Erwan Gouriou's avatar Erwan Gouriou Committed by Marti Bolivar
Browse files

drivers/clock_control: stm32u5: Wrong bus check in _get_rate()



Checking that provided pclken->bus fits bus range in
clock_control_get_rate() is wrong as it could actually be a source
clock and hence not belong to this range.
Also, this kind of check is just not needed since this function should
not be used before call to clock_control_on() or clock_control_configure()
which do the required verification.

Signed-off-by: default avatarErwan Gouriou <erwan.gouriou@linaro.org>
parent e8b5e05d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment