]> asedeno.scripts.mit.edu Git - linux.git/commit
bus: uniphier-system-bus: use devm_platform_ioremap_resource()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 5 Sep 2019 03:21:22 +0000 (12:21 +0900)
committerArnd Bergmann <arnd@arndb.de>
Thu, 5 Sep 2019 15:57:18 +0000 (17:57 +0200)
commitef92bfdaa7123bc8bdaed3f0f6e008500dd555da
treeef7ded1be08e93152363910f5d19c6c945d21eaa
parentb8580b283197cf6c355b0ccc8128777dcf8375d4
bus: uniphier-system-bus: 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.

Link: https://lore.kernel.org/r/20190905032122.26076-1-yamada.masahiro@socionext.com
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/bus/uniphier-system-bus.c