diff options
| author | Thorsten Blum <blum@kernel.org> | 2026-10-01 23:16:10 +0200 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2026-10-08 18:48:07 +1100 |
| commit | 70f49f55a15ea3028403c970d356f86d7fa9cff1 (patch) | |
| tree | eee0aa17a1932b390dbeeff97be31d93aab15257 | |
| parent | 3d68bdcf0d747dd5a2fad8e011dffbb1bd776f43 (diff) | |
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>
| -rw-r--r-- | drivers/char/hw_random/stm32-rng.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/hw_random/stm32-rng.c b/drivers/char/hw_random/stm32-rng.c index 9114efc90d1c..bcec6f0b9bb1 100644 --- a/drivers/char/hw_random/stm32-rng.c +++ b/drivers/char/hw_random/stm32-rng.c @@ -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; } |
