hwrng: st - use devm_platform_ioremap_resource() to simplify code
authorYueHaibing <yuehaibing@huawei.com>
Wed, 16 Oct 2019 10:46:19 +0000 (18:46 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 25 Oct 2019 15:09:57 +0000 (02:09 +1100)
commitbd74b0f5ef80c0b826aa1e6eee40dd27d05c4f34
tree1a65457985666916d74283bda176513764fba2f0
parent64b7bf137c953c20de18c3c4ae6119746f49c625
hwrng: st - 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>
Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/st-rng.c