]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit83878da3c9bce2d12555deec05be636f19a835f1
tree0db411685496c26b39b60debc01781f32e615340
parentfffdcfd53f87f899e8943e1d03eaacce1502c3df
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