[PATCH v2] hwrng: pasemi_rng.c: Migrate to managed API

Herbert Xu herbert at gondor.apana.org.au
Wed Sep 7 23:22:10 AEST 2016


On Sun, Sep 04, 2016 at 11:43:08PM +0530, PrasannaKumar Muralidharan wrote:
> 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 at stevens-zone.net>
> 
> Suggested-by: LABBE Corentin <clabbe.montjoie at gmail.com>
> Signed-off-by: PrasannaKumar Muralidharan <prasannatsmkumar at gmail.com>

Patch applied.  Thanks.
-- 
Email: Herbert Xu <herbert at gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt


More information about the Linuxppc-dev mailing list