]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip/uniphier-aidet: Use devm_platform_ioremap_resource()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 5 Sep 2019 03:49:32 +0000 (12:49 +0900)
committerMarc Zyngier <maz@kernel.org>
Thu, 5 Sep 2019 08:28:13 +0000 (09:28 +0100)
commited9b29ce6ce2378153e0d76705c6adc4ad7b54a4
tree02b5b822ddc15825249a68cde2a5689e10d06dee
parente764624f8b9c81b6c608fa9602405c18df30b12d
irqchip/uniphier-aidet: Use devm_platform_ioremap_resource()

Replace the chain of platform_get_resource() and devm_ioremap_resource()
with devm_platform_ioremap_resource().

This allows to remove the local variable for (struct resource *), and
have one function call less.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20190905034932.12587-1-yamada.masahiro@socionext.com
drivers/irqchip/irq-uniphier-aidet.c