mirror of
https://github.com/torvalds/linux.git
synced 2026-11-06 21:58:01 +01:00
hwrng: stm32 - reuse clock rate in stm32_rng_clock_freq_restrain()
Reuse clock_rate and avoid calling clk_get_rate() again. Remove the extra space before the colon while at it. Signed-off-by: Thorsten Blum <blum@kernel.org> acked-by: Maxime Méré <maxime.mere@foss.st.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
3d68bdcf0d
commit
70f49f55a1
|
|
@ -277,7 +277,7 @@ static uint stm32_rng_clock_freq_restrain(struct hwrng *rng)
|
|||
while ((clock_rate >> clock_div) > priv->data->max_clock_rate)
|
||||
clock_div++;
|
||||
|
||||
pr_debug("RNG clk rate : %lu\n", clk_get_rate(priv->clk_bulk[0].clk) >> clock_div);
|
||||
pr_debug("RNG clk rate: %lu\n", clock_rate >> clock_div);
|
||||
|
||||
return clock_div;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user