rtc: armada38x: use devm_platform_ioremap_resource_byname()
authorYe Xingchen <ye.xingchen@zte.com.cn>
Wed, 22 Mar 2023 03:30:31 +0000 (11:30 +0800)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 28 Apr 2023 06:07:23 +0000 (08:07 +0200)
commite99ab4abebf825de2ce65f6c6c32ee30e00bb077
treefb8f741a2b8d47181f85c074ab8e05cd2fa231d6
parent916890539bc8a5674d363a1fc985633200c2117a
rtc: armada38x: use devm_platform_ioremap_resource_byname()

Convert platform_get_resource_byname(),devm_ioremap_resource() to a single
call to devm_platform_ioremap_resource_byname(), as this is exactly what
this function does.

Signed-off-by: Ye Xingchen <ye.xingchen@zte.com.cn>
Link: https://lore.kernel.org/r/202303221130316049449@zte.com.cn
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-armada38x.c