]> git.dujemihanovic.xyz Git - u-boot.git/commit
clk: fix clk_get_rate() always return ulong
authorJulien Masson <jmasson@baylibre.com>
Fri, 15 Dec 2023 14:09:43 +0000 (15:09 +0100)
committerSean Anderson <seanga2@gmail.com>
Tue, 30 Jan 2024 03:34:52 +0000 (22:34 -0500)
commitb500447ad6aef31de75e3e9242101ae96eceb7ca
tree20e04624eb5e7bb2a999c1a3b657be56a203b47f
parent2da1331d20b34fb9b7ff41ddaf622dd880965a02
clk: fix clk_get_rate() always return ulong

When we call clk_get_rate(), we expect to get clock rate value as
ulong.
In that case we should not use log_ret() macro since it use internally
an int.
Otherwise we may return an invalid/truncated clock rate value.

Signed-off-by: Julien Masson <jmasson@baylibre.com>
Fixes: 5c5992cb90c ("clk: Add debugging for return values")
Reviewed-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Link: https://lore.kernel.org/r/87o7erv9p4.fsf@baylibre.com
drivers/clk/clk-uclass.c