]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: xilinx_dma: use devm_platform_ioremap_resource()
authorRadhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Thu, 26 Sep 2019 10:50:59 +0000 (16:20 +0530)
committerVinod Koul <vkoul@kernel.org>
Tue, 15 Oct 2019 10:11:46 +0000 (15:41 +0530)
commitfcb4cde89fa74e62f3ffaa27beaf4638ec2b12b5
tree00b7bc1eadd0085b15454a59dc9ad0f3b2a1fb19
parent52ff84f368a799ffcc2fa93f9ca818a663d5149f
dmaengine: xilinx_dma: use devm_platform_ioremap_resource()

Replace the chain of platform_get_resource() and devm_ioremap_resource()
with devm_platform_ioremap_resource(). It simplifies the flow and there
is no functional change.

Fixes below cocinelle warning-
WARNING: Use devm_platform_ioremap_resource for xdev -> regs

Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Link: https://lore.kernel.org/r/1569495060-18117-4-git-send-email-radhey.shyam.pandey@xilinx.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/xilinx/xilinx_dma.c