diff options
author | Martin Kaiser <martin@kaiser.cx> | 2022-08-15 22:37:43 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2022-08-26 13:49:10 +0300 |
commit | d5eb916d889f12f27275e2049b9c4df43b7cfa13 (patch) | |
tree | 9ac9ddf5ff966afc09e0e50ccd01016706704918 /Documentation/virt/kvm/x86 | |
parent | 6a2bc448423cea44e7dba0f72d7c82ae04ab201e (diff) | |
download | linux-d5eb916d889f12f27275e2049b9c4df43b7cfa13.tar.xz |
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 'Documentation/virt/kvm/x86')
0 files changed, 0 insertions, 0 deletions