diff options
| author | Martin Kaiser <martin@kaiser.cx> | 2022-08-15 21:37:43 +0200 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2022-08-26 18:49:10 +0800 |
| commit | d5eb916d889f12f27275e2049b9c4df43b7cfa13 (patch) | |
| tree | 9ac9ddf5ff966afc09e0e50ccd01016706704918 /net/lapb/lapb_iface.c | |
| parent | 6a2bc448423cea44e7dba0f72d7c82ae04ab201e (diff) | |
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 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions
