]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: mxc: use devm_platform_ioremap_resource() to simplify code
authorAnson Huang <anson.huang@nxp.com>
Mon, 1 Apr 2019 05:21:43 +0000 (05:21 +0000)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 4 Apr 2019 08:07:11 +0000 (10:07 +0200)
commit1299d85528f34494cd54f52f3c99a4437f22f4c3
tree376ae54552b6033f433f173c0c090f520a91dc6c
parent6915cef35c6f731c9f45f1393f647d2c53c850cc
rtc: mxc: 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>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-mxc.c