hwrng: octeon - Use devm_hwrng_register
authorVaishali Thakkar <vthakkar1994@gmail.com>
Thu, 10 Sep 2015 06:02:26 +0000 (11:32 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 21 Sep 2015 14:00:38 +0000 (22:00 +0800)
commit04b7d704c6160fa4e8eeffc8540575fb15142f7f
tree1e7f7446d8738b8df77ab231dba1f6c58dbcd122
parenta2712e6c75f1e95b7c31830c19191e8fa367c15a
hwrng: octeon - Use devm_hwrng_register

Use resource managed function devm_hwrng_register instead of
hwrng_register to make the error-path simpler. Also, remove
octeon_rng_remove as it is now redundant.

Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/octeon-rng.c