hwrng: cctrng - let devres enable the clock
authorMartin Kaiser <martin@kaiser.cx>
Wed, 19 Jul 2023 07:18:04 +0000 (09:18 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 28 Jul 2023 10:20:25 +0000 (18:20 +0800)
commit8bcd9689384810bd1c610419563c827e23118e34
treedce8e2230d7b4826dea7f1d515e2993c31d1ce20
parent80e40fea8e2a7528b079ac1853da528c5cabf625
hwrng: cctrng - let devres enable the clock

Call devm_clk_get_optional_enabled in the cctrng driver. We don't have to
disable and unprepare the clock any more in error paths or in the remove
function.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/cctrng.c