clk: sunxi: sun9i-mmc: Use devm_platform_get_and_ioremap_resource()
authorYangtao Li <frank.li@vivo.com>
Wed, 5 Jul 2023 06:53:01 +0000 (14:53 +0800)
committerJernej Skrabec <jernej.skrabec@gmail.com>
Sun, 30 Jul 2023 22:44:21 +0000 (00:44 +0200)
commit170d588200dc5725539045ba0bbef83da32ab658
tree557ea1b5691b8da4914eaa9ea4f1cf4706a69775
parent06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5
clk: sunxi: sun9i-mmc: Use devm_platform_get_and_ioremap_resource()

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

Signed-off-by: Yangtao Li <frank.li@vivo.com>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Link: https://lore.kernel.org/r/20230705065313.67043-1-frank.li@vivo.com
Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
drivers/clk/sunxi/clk-sun9i-mmc.c