hwrng: tx4939 - Use devm_hwrng_register instead of hwrng_register
authorPrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>
Sun, 28 Aug 2016 08:49:12 +0000 (14:19 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 31 Aug 2016 15:00:49 +0000 (23:00 +0800)
commit98a3c465fe987f1e0ae87a50ce980d6560233285
tree2ca053b3f231512ae38543b8b85c974f24bbe8a5
parent68734bc9f58ee01f1b530394cc31d58e364125f6
hwrng: tx4939 - Use devm_hwrng_register instead of hwrng_register

By using devm_hwrng_register instead of hwrng_register the .remove
callback in platform_driver can be removed. This reduces a few lines in
code.

Signed-off-by: PrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/tx4939-rng.c