]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: xilinx_dma: Fix devm_platform_ioremap_resource error handling
authorSwati Agarwal <swati.agarwal@xilinx.com>
Wed, 17 Aug 2022 06:11:23 +0000 (11:41 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Feb 2023 06:52:39 +0000 (07:52 +0100)
commitda250fe0f176d016f785519ed1c06f9cd997e7c6
treee12af39ab4765c71b0044d817fbc1687ad43d861
parenteb276b676ee13075ab1e2cc39c1faf275431915b
dmaengine: xilinx_dma: Fix devm_platform_ioremap_resource error handling

[ Upstream commit e15d5a6be714cd6d6eb0fadeb0e684ddae3423d9 ]

Add missing cleanup in devm_platform_ioremap_resource().
When probe fails remove dma channel resources and disable clocks in
accordance with the order of resources allocated .

Signed-off-by: Swati Agarwal <swati.agarwal@xilinx.com>
Link: https://lore.kernel.org/r/20220817061125.4720-2-swati.agarwal@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