dmaengine: zx: remove: removed dmam_pool_destroy
authorSatendra Singh Thakur <sst2005@gmail.com>
Sat, 9 Nov 2019 11:36:09 +0000 (17:06 +0530)
committerVinod Koul <vkoul@kernel.org>
Thu, 14 Nov 2019 06:46:53 +0000 (12:16 +0530)
In the probe method dmam_pool_create is used. Therefore, there is no
need to explicitly call dmam_pool_destroy in remove method as this
will be automatically taken care by devres

Signed-off-by: Satendra Singh Thakur <sst2005@gmail.com>
Link: https://lore.kernel.org/r/20191109113609.6159-1-sst2005@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/zx_dma.c

index 6b457e6..5fe2e8b 100644 (file)
@@ -889,7 +889,6 @@ static int zx_dma_remove(struct platform_device *op)
                list_del(&c->vc.chan.device_node);
        }
        clk_disable_unprepare(d->clk);
-       dmam_pool_destroy(d->pool);
 
        return 0;
 }