spi: uniphier: Use devm_platform_get_and_ioremap_resource() to simplify code
authorKunihiko Hayashi <hayashi.kunihiko@socionext.com>
Mon, 11 May 2020 08:25:30 +0000 (17:25 +0900)
committerMark Brown <broonie@kernel.org>
Mon, 11 May 2020 17:17:52 +0000 (18:17 +0100)
commit5bc486156d840c15fb65c96da24f20687a07b2a4
tree8db1962e9e677aa9c4413eca3f9823c7dbd6d786
parent6a091404bf95f1e17d4ad149f1c010a9360e88ba
spi: uniphier: Use devm_platform_get_and_ioremap_resource() to simplify code

Use devm_platform_get_and_ioremap_resource() to simplify code instead of
platform_get_resource() and devm_ioremap_resource(). This also gets
the resource that the following code uses.

Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Link: https://lore.kernel.org/r/1589185530-28170-2-git-send-email-hayashi.kunihiko@socionext.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-uniphier.c