hwrng: pic32 - Use device-managed registration API
authorTian Tao <tiantao6@hisilicon.com>
Mon, 1 Mar 2021 03:24:53 +0000 (11:24 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 12 Mar 2021 13:04:00 +0000 (00:04 +1100)
commit7ea39973d1e5a73a7443c0ed96faec83224a80e3
tree5582004d12c7e69d10137ba32640a537def7ad81
parentae8351284b74bf93eb4d2b67178f2e9a09c19932
hwrng: pic32 - Use device-managed registration API

Use devm_hwrng_register to get rid of manual unregistration.

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/pic32-rng.c