]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
i2c: uniphier(-f): use devm_platform_ioremap_resource()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 5 Sep 2019 03:45:32 +0000 (12:45 +0900)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 5 Sep 2019 20:33:25 +0000 (22:33 +0200)
commit22ac74a6194798ce131c55ff0dfbb9697650e626
treefd98755d375199f5c4efa71bd41c502cede58031
parentfe050f99072d6b5175c35427a6f72846790441ec
i2c: uniphier(-f): 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: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-uniphier-f.c
drivers/i2c/busses/i2c-uniphier.c