]> git.baikalelectronics.ru Git - 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)
commit7b23cadc52733d27693e33820aa72972a646d346
treefd98755d375199f5c4efa71bd41c502cede58031
parent386b73b2fd60137bfd2cf476314f95269d2c967b
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