From 5c5332a6a229acc856811bdce1c0845986e8306a Mon Sep 17 00:00:00 2001 From: Satendra Singh Thakur Date: Sat, 9 Nov 2019 17:06:09 +0530 Subject: dmaengine: zx: remove: removed dmam_pool_destroy 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 Link: https://lore.kernel.org/r/20191109113609.6159-1-sst2005@gmail.com Signed-off-by: Vinod Koul --- drivers/dma/zx_dma.c | 1 - 1 file changed, 1 deletion(-) (limited to 'drivers/dma/zx_dma.c') diff --git a/drivers/dma/zx_dma.c b/drivers/dma/zx_dma.c index 6b457e683e70..5fe2e8b9a7b8 100644 --- a/drivers/dma/zx_dma.c +++ b/drivers/dma/zx_dma.c @@ -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; } -- cgit v1.2.3