dma/zx/remove: Removed dmam_pool_destroy from remove method
PATCH 1/1 dma/zx/remove: Removed dmam_pool_destroy from remove method
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
--- drivers/dma/zx_dma.c | 1 - 1 file changed, 1 deletion(-)
drivers/dma/zx_dma.c +0 -1
@@ -894,7 +894,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 ; }
Signature · 1 line
2.17.1
Vinod Koul
maintainerQuoted 3 lines · Satendra Singh Thakur
In the probe method
dmam_pool_createis used. Therefore, there is no need to explicitly calldmam_pool_destroyin remove method as this will be automatically taken care by devres
Please do not reinvent system tags, git log is your friend to check for the tags to be used.
In this case, it is dmaengine: zx: remove ...
Quoted 20 lines
Signed-off-by Satendra Singh Thakur <[email protected]>--- drivers/dma/zx_dma.c | 1 - 1 file changed, 1 deletion(-)drivers/dma/zx_dma.c +0
-1@@ -894,7 +894,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 ; }Signature · 1 line
2.17.1
Signature · 1 line
~Vinod
PATCH 1/1 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
---
v1: modified the subject line with new tags
drivers/dma/zx_dma.c | 1 - 1 file changed, 1 deletion(-)
drivers/dma/zx_dma.c +0 -1
@@ -894,7 +894,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 ; }
Signature · 1 line
2.17.1