nvmem: imx-ocotp: use devm_platform_ioremap_resource() to simplify code
authorAnson Huang <anson.huang@nxp.com>
Sat, 13 Apr 2019 10:32:59 +0000 (11:32 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Apr 2019 17:43:12 +0000 (19:43 +0200)
commit3b26cd885853764aed83828429f5c50787cfc55a
tree47329cd384268b69dde23f8db29963d342e9398b
parent2fe518fecb3a4727393be286db9804cd82ee2d91
nvmem: imx-ocotp: 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-ocotp.c