hwrng: cctrng - Use device-managed registration API
authorTian Tao <tiantao6@hisilicon.com>
Mon, 1 Mar 2021 02:43:48 +0000 (10:43 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 12 Mar 2021 13:04:00 +0000 (00:04 +1100)
commitae8351284b74bf93eb4d2b67178f2e9a09c19932
tree220fcbbd5daf469638a31c2bbca883a0eda46afa
parent1406f0f3440265deec6932fd611549b07ac76e89
hwrng: cctrng - 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/cctrng.c