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)
committerVinod Koul <vkoul@kernel.org>
Sun, 4 Sep 2022 17:24:07 +0000 (22:54 +0530)
commit91df7751eb890e970afc08f50b8f0fa5ea39e03d
treeca21e6edeb87121220b45f3c489b3889f6ff44a6
parent568035b01cfb107af8d2e4bd2fb9aea22cf5b868
dmaengine: xilinx_dma: Fix devm_platform_ioremap_resource error handling

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>
drivers/dma/xilinx/xilinx_dma.c