nvmem: imx-iim: use devm_platform_ioremap_resource() to simplify code
authorAnson Huang <anson.huang@nxp.com>
Sat, 13 Apr 2019 10:33:01 +0000 (11:33 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Apr 2019 17:43:13 +0000 (19:43 +0200)
commitededa0457b67ebb73d2c24b71822dad8c66a4715
tree38c6b8b7a2b8d65959cd14d6fd5c61fcf480af01
parent794a1e229b92a4327ed536dd55a22d5a52762b39
nvmem: imx-iim: 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: Mukesh Ojha <mojha@codeaurora.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/imx-iim.c