diff options
author | 2022-08-15 21:37:43 +0200 | |
---|---|---|
committer | 2022-08-26 18:49:10 +0800 | |
commit | d5eb916d889f12f27275e2049b9c4df43b7cfa13 (patch) | |
tree | 9ac9ddf5ff966afc09e0e50ccd01016706704918 /crypto/essiv.c | |
parent | hwrng: imx-rngc - use devm_clk_get_enabled (diff) | |
download | wireguard-linux-d5eb916d889f12f27275e2049b9c4df43b7cfa13.tar.xz wireguard-linux-d5eb916d889f12f27275e2049b9c4df43b7cfa13.zip |
hwrng: imx-rngc - use devres for hwrng registration
Replace hwrng_register with devm_hwrng_register and let devres unregister
our hwrng when the device is removed.
It's possible to do this now that devres also handles clock
disable+uprepare. When we had to disable+unprepare the clock ourselves,
we had to unregister the hwrng before this and couldn't use devres.
There's nothing left to do for imx_rngc_remove, this function can go.
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/essiv.c')
0 files changed, 0 insertions, 0 deletions