spi: tegra20-slink: Use devm_platform_get_and_ioremap_resource()
authorYangtao Li <frank.li@vivo.com>
Thu, 6 Jul 2023 03:27:25 +0000 (11:27 +0800)
committerMark Brown <broonie@kernel.org>
Sun, 9 Jul 2023 21:51:40 +0000 (22:51 +0100)
commit2e4ed2577936476e0e9bb9a07158e94effb86285
tree5bc333a1edc3f5010fa319efd8cf17048ead8c70
parentb778d967979d7ed638fe1de8c2465ff33ace47d8
spi: tegra20-slink: 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: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20230706032727.9180-6-frank.li@vivo.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-tegra20-slink.c