Skip to content
Commit b500447a authored by Julien Masson's avatar Julien Masson Committed by Sean Anderson
Browse files

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: default avatarJulien Masson <jmasson@baylibre.com>
Fixes: 5c5992cb ("clk: Add debugging for return values")
Reviewed-by: default avatarSean Anderson <seanga2@gmail.com>
Reviewed-by: default avatarMattijs Korpershoek <mkorpershoek@baylibre.com>
Link: https://lore.kernel.org/r/87o7erv9p4.fsf@baylibre.com
parent 2da1331d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment