hwrng: geode - Migrate to managed API
authorPrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>
Sun, 11 Sep 2016 15:23:21 +0000 (20:53 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 13 Sep 2016 12:27:25 +0000 (20:27 +0800)
commit6e9b5e76882cbdd99caaea50ef3917a31edead75
tree0db411685496c26b39b60debc01781f32e615340
parent94879fa82275f161f3b4fdabab00cd4d625781f3
hwrng: geode - Migrate to managed API

Use devm_ioremap and devm_hwrng_register instead of ioremap and
hwrng_register. This removes error handling code. Also moved code around
by removing goto statements. This improves code readability.

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