]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: uniphier-mdmac: use devm_platform_ioremap_resource()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 5 Sep 2019 03:41:33 +0000 (12:41 +0900)
committerVinod Koul <vkoul@kernel.org>
Fri, 11 Oct 2019 10:15:41 +0000 (15:45 +0530)
commit4454cfacc119094d5895465f3d0cd2e3bbdb2be8
tree48759008cce0bca7ad1d13f5d62789037f653dc7
parentf5c4776cd5b591eea4e9be9f421e34f61b98ebb2
dmaengine: uniphier-mdmac: 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>
Link: https://lore.kernel.org/r/20190905034133.29514-1-yamada.masahiro@socionext.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/uniphier-mdmac.c