hwrng: atmel - use devm_platform_ioremap_resource() to simplify code
authorYueHaibing <yuehaibing@huawei.com>
Wed, 16 Oct 2019 10:46:09 +0000 (18:46 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 25 Oct 2019 15:09:53 +0000 (02:09 +1100)
commitbc49534db6949cb71dd602d82481c0a2fdd44b05
tree4b3fb325e9b43de04a49a163481e5bdd14094ca8
parentd1569349d7ce540606bbe8c1e6a5b16b1fd45e34
hwrng: atmel - use devm_platform_ioremap_resource() to simplify code

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/atmel-rng.c