]> git.karo-electronics.de Git - linux-beck.git/commit
hwrng: pasemi - Migrate to managed API
authorPrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>
Sun, 4 Sep 2016 18:13:08 +0000 (23:43 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 7 Sep 2016 13:09:35 +0000 (21:09 +0800)
commitda28caaaf878b224c3ca89c1eb7373536cc5d556
tree393eb650cd7110f3b488d1c7ecc0afce8544bc0b
parentb4587456fea4e2e3021341c4932bd89674c14824
hwrng: pasemi - Migrate to managed API

Use devm_ioremap and devm_hwrng_register instead of ioremap and
hwrng_register. This removes unregistering and error handling code.

Changes in v2:
Remove hardcoded resource size in ioremap, use resource struct obtained
by calling platform_get_resource.

Removing hardcoded resource size was suggested by LABBE Corentin.

CC: Darren Stevens <darren@stevens-zone.net>
Suggested-by: LABBE Corentin <clabbe.montjoie@gmail.com>
Signed-off-by: PrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/pasemi-rng.c