hwrng: cctrng - don't open code init and exit functions
authorMartin Kaiser <martin@kaiser.cx>
Wed, 19 Jul 2023 07:18:03 +0000 (09:18 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 28 Jul 2023 10:20:25 +0000 (18:20 +0800)
commit80e40fea8e2a7528b079ac1853da528c5cabf625
tree92a83b2975c6081037681aa217518b5b7f8a9c89
parent9f3fa6bc4ff8515da1349c44a77e7327bd2f4788
hwrng: cctrng - don't open code init and exit functions

Do not open code the init and exit functions of the cctrng driver.

If we move the BUILD_BUG_ON checks into the probe function, we can use
module_platform_driver and make the code shorter.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/cctrng.c