]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Feb 2023 06:52:39 +0000 (07:52 +0100)
commiteb276b676ee13075ab1e2cc39c1faf275431915b
tree544373fc4ffef77614a144495ef78fcd146bb784
parentef832b0bb8f015a06495770c90689f53053fe1c1
dmaengine: xilinx_dma: use devm_platform_ioremap_resource()

[ Upstream commit eac31a3548debb8e8b3743c0f2a0ab535fa39a0b ]

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>
Stable-dep-of: 596b53ccc36a ("dmaengine: xilinx_dma: call of_node_put() when breaking out of for_each_child_of_node()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/dma/xilinx/xilinx_dma.c