]> 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)
commiteac31a3548debb8e8b3743c0f2a0ab535fa39a0b
tree00b7bc1eadd0085b15454a59dc9ad0f3b2a1fb19
parent941b1b06a5598325643477d336d68a1b92497261
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