hwrng: mxc-rnga - use devm_platform_ioremap_resource() to simplify code
authorAnson Huang <Anson.Huang@nxp.com>
Wed, 17 Jul 2019 09:04:38 +0000 (17:04 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 27 Jul 2019 11:08:32 +0000 (21:08 +1000)
commitf2f1d75ab725106c4958bda30f87bd39a0e3040a
tree51b700eb331ed07deb34d2bdb9c3b04d9dce226e
parentd10d094cbfd338f361a83a82e5d99feb7933008d
hwrng: mxc-rnga - use devm_platform_ioremap_resource() to simplify code

Use the new helper devm_platform_ioremap_resource() which wraps the
platform_get_resource() and devm_ioremap_resource() together, to
simplify the code.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/mxc-rnga.c