pwm: imx27: Use devm_platform_ioremap_resource() to simplify code
authorAnson Huang <anson.huang@nxp.com>
Mon, 1 Apr 2019 05:24:02 +0000 (05:24 +0000)
committerThierry Reding <thierry.reding@gmail.com>
Thu, 9 May 2019 14:53:59 +0000 (16:53 +0200)
commit1347c94f73e33a7d1edab6728a34bedd55b2d588
tree2ec862b243e2614572547663be470b585ef3f8f4
parentf173747fffdf037c791405ab4f1ec0eb392fc48e
pwm: imx27: 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>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Mukesh Ojha <mojha@codeaurora.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-imx27.c